本文整理汇总了PHP中ListPage::getIdentifier方法的典型用法代码示例。如果您正苦于以下问题:PHP ListPage::getIdentifier方法的具体用法?PHP ListPage::getIdentifier怎么用?PHP ListPage::getIdentifier使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ListPage
的用法示例。
在下文中一共展示了ListPage::getIdentifier方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
$layoutExamples = array();
$layoutExamples[] = new Example('Markup Inheretence', MarkupInheritancePage::getIdentifier());
$layoutExamples[] = new Example('Panels', PanelPage::getIdentifier());
$layoutExamples[] = new Example('Borders', BorderPage::getIdentifier());
$generalExamples = array();
$generalExamples[] = new Example('Labels', LabelPage::getIdentifier());
$generalExamples[] = new Example('Links', LinkPage::getIdentifier());
$generalExamples[] = new Example('Lists', ListPage::getIdentifier());
$generalExamples[] = new Example('Tabs', TabPanelPage::getIdentifier());
$formExamples = array();
$formExamples[] = new Example('Form Fields', FormPage::getIdentifier());
$formExamples[] = new Example('Validation', ValidationPage::getIdentifier());
$formExamples[] = new Example('Special Fields', SpecialFields::getIdentifier());
$tableExamples = array();
$tableExamples[] = new Example('Data Table', DataTablePage::getIdentifier());
$ajaxExamples = array();
$ajaxExamples[] = new Example('Ajax Link', AjaxLinkPage::getIdentifier());
$ajaxExamples[] = new Example('Ajax Button', AjaxButtonPage::getIdentifier());
$authoExamples[] = new Example('Authorised Access Page', AuthorisedPage::getIdentifier());
$examples = array();
$examples[] = new ExampleType('General', $generalExamples);
$examples[] = new ExampleType('Layout', $layoutExamples);
$examples[] = new ExampleType('Form Components', $formExamples);
$examples[] = new ExampleType('Data Tables', $tableExamples);
$examples[] = new ExampleType('Ajax', $ajaxExamples);
$examples[] = new ExampleType('Security', $authoExamples);
$self = $this;
$this->add(new ListView('examples', function (picon\ListItem $item) use($self) {
$type = $item->getModelObject();
$item->add(new picon\Label('title', new picon\BasicModel($type->name)));
$item->add(new ListView('list', function (picon\ListItem $item) use($self) {
$link = new picon\Link('link', function () use($item, $self) {
$self->setPage($item->getModelObject()->page);
});
$item->add($link);
$link->add(new picon\Label('exampleName', new picon\BasicModel($item->getModelObject()->name)));
}, new picon\ArrayModel($type->examples)));
}, new ArrayModel($examples)));
}