| Server IP : 195.130.67.5 / Your IP : 216.73.217.127 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/cdc/wp-content/plugins/simple-lightbox/includes/ |
Upload File : |
<?php
/**
* Collection Controller
* @package Simple Lightbox
* @subpackage Collection
* @author Archetyped
*/
class SLB_Collection_Controller extends SLB_Base_Collection {
/* Configuration */
protected $mode = 'full';
protected $unique = true;
/* Properties */
protected $parent = null;
/* Methods */
public function __construct( $parent = null ) {
$this->set_parent( $parent );
parent::__construct();
}
/* Initialization */
/* Parent */
/**
* Set parent instance
* @param SLB_Base $parent (optional) Parent instance
* @return obj Current instance
*/
protected function set_parent( $parent = null ) {
$this->parent = ( $parent instanceof SLB_Base ) ? $parent : null;
return $this;
}
/**
* Check if parent set
* @return bool TRUE if parent set
*/
protected function has_parent() {
return ( is_object( $this->get_parent() ) ) ? true : false;
}
/**
* Retrieve parent
* @uses $parent
* @return null|obj Parent instance (NULL if no parent set)
*/
protected function get_parent() {
return $this->parent;
}
}