本文整理匯總了PHP中AEAbstractFilter::hasFilters方法的典型用法代碼示例。如果您正苦於以下問題:PHP AEAbstractFilter::hasFilters方法的具體用法?PHP AEAbstractFilter::hasFilters怎麽用?PHP AEAbstractFilter::hasFilters使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類AEAbstractFilter
的用法示例。
在下文中一共展示了AEAbstractFilter::hasFilters方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: hasFilters
public function hasFilters()
{
// Reset the filters
$this->filter_data = array();
// Add filters for modules
$admin = substr(JPATH_ADMINISTRATOR, strlen(JPATH_SITE) + 1);
$filterObjects = array(array('modules', 'frontend', 'modules'), array('modules', 'backend', $admin . '/modules'));
foreach ($filterObjects as $filterObject) {
$this->createFilterEntry($filterObject[0], $filterObject[1], $filterObject[2]);
}
// Plugins are a special case. They're stored in the front end, but
// there are subdirectories based on type. Extensions can define custom types,
// therefore there is no predetermined set of directories. We have to scan for it.
$this->createPluginFilters();
return parent::hasFilters();
}