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.admin_menu.php
<?php

/**
 * Admin Menu
 * Menus are top-level views in the Admin UI
 * @package Simple Lightbox
 * @subpackage Admin
 * @author Archetyped
 */
class SLB_Admin_Menu extends SLB_Admin_View {
	/* Properties */

	/**
	 * Menu position
	 * @var int
	 */
	protected $position = null;

	/* Init */

	public function __construct($id, $labels, $callback = null, $capability = null, $icon = null, $position = null) {
		// Default
		parent::__construct($id, $labels, $callback, $capability, $icon);
		// Class specific
		$this->set_position($position);
		return $this;
	}

	/* Getters/Setters */

	/**
	 * Set menu position
	 * @return obj Current instance
	 */
	public function set_position($position) {
		if ( is_int($position) )
			$this->position = $position;
		return $this;
	}
}