本文整理匯總了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)));
}