mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
2cdf57053f
API CHANGE Removed LeftAndMain::add_menu_item(), LeftAndMain::remove_menu_item(), LeftAndMain::replace_menu_item(), LeftAndMain::clear_menu() MINOR Disabled LeftAndMainTest, now covered by CMSMenuTest git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65095 467b73ca-7a2a-4603-9d3b-597d59a354a9
49 lines
854 B
PHP
49 lines
854 B
PHP
<?php
|
|
/**
|
|
* A simple CMS menu item
|
|
*
|
|
* @package cms
|
|
* @subpackage content
|
|
*/
|
|
class CMSMenuItem extends Object
|
|
{
|
|
/**
|
|
* The (translated) menu title
|
|
* @var string $title
|
|
*/
|
|
public $title;
|
|
|
|
/**
|
|
* Relative URL
|
|
* @var string $url
|
|
*/
|
|
public $url;
|
|
|
|
/**
|
|
* Parent controller class name
|
|
* @var string $controller
|
|
*/
|
|
public $controller;
|
|
|
|
/**
|
|
* Menu priority (sort order)
|
|
* @var integer $priority
|
|
*/
|
|
public $priority;
|
|
|
|
/**
|
|
* Create a new CMS Menu Item
|
|
* @param string $title
|
|
* @param string $url
|
|
* @param string $controller Controller class name
|
|
* @param integer $priority The sort priority of the item
|
|
*/
|
|
public function __construct($title, $url, $controller = null, $priority = -1) {
|
|
$this->title = $title;
|
|
$this->url = $url;
|
|
$this->controller = $controller;
|
|
$this->priority = $priority;
|
|
}
|
|
|
|
}
|
|
?>
|