HEX
Server: Apache
System: Linux webm008.cluster106.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: associattd (600886)
PHP: 5.6.40
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/associattd/www/wp-content/plugins/simple-lightbox/includes/class.collection_controller.php
<?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;
	}
}