本文整理汇总了PHP中Concrete\Core\Attribute\Type::getListByPackage方法的典型用法代码示例。如果您正苦于以下问题:PHP Type::getListByPackage方法的具体用法?PHP Type::getListByPackage怎么用?PHP Type::getListByPackage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Concrete\Core\Attribute\Type
的用法示例。
在下文中一共展示了Type::getListByPackage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getPackageItems
/**
* Returns an array of package items (e.g. blocks, themes)
*/
public function getPackageItems()
{
$items = array();
$items['attribute_categories'] = AttributeKeyCategory::getListByPackage($this);
$items['permission_categories'] = PermissionKeyCategory::getListByPackage($this);
$items['permission_access_entity_types'] = PermissionAccessEntityType::getListByPackage($this);
$items['attribute_keys'] = AttributeKey::getListByPackage($this);
$items['attribute_sets'] = AttributeSet::getListByPackage($this);
$items['group_sets'] = GroupSet::getListByPackage($this);
$items['page_types'] = PageType::getListByPackage($this);
$items['page_templates'] = PageTemplate::getListByPackage($this);
$items['mail_importers'] = MailImporter::getListByPackage($this);
$items['gathering_item_template_types'] = GatheringItemTemplateType::getListByPackage($this);
$items['gathering_item_templates'] = GatheringItemTemplate::getListByPackage($this);
$items['gathering_data_sources'] = GatheringDataSource::getListByPackage($this);
$items['features'] = Feature::getListByPackage($this);
$items['feature_categories'] = FeatureCategory::getListByPackage($this);
$btl = new BlockTypeList();
$btl->filterByPackage($this);
$blocktypes = $btl->get();
$items['block_types'] = $blocktypes;
$items['block_type_sets'] = BlockTypeSet::getListByPackage($this);
$items['page_themes'] = PageTheme::getListByPackage($this);
$items['permissions'] = PermissionKey::getListByPackage($this);
$items['single_pages'] = SinglePage::getListByPackage($this);
$items['attribute_types'] = AttributeType::getListByPackage($this);
$items['captcha_libraries'] = SystemCaptchaLibrary::getListByPackage($this);
$items['content_editor_snippets'] = SystemContentEditorSnippet::getListByPackage($this);
$items['conversation_editors'] = ConversationEditor::getListByPackage($this);
$items['conversation_rating_types'] = ConversationRatingType::getListByPackage($this);
$items['page_type_publish_target_types'] = PageTypePublishTargetType::getListByPackage($this);
$items['page_type_composer_control_types'] = PageTypeComposerControlType::getListByPackage($this);
$items['antispam_libraries'] = SystemAntispamLibrary::getListByPackage($this);
$items['community_point_actions'] = UserPointAction::getListByPackage($this);
$items['jobs'] = Job::getListByPackage($this);
$items['workflow_types'] = WorkflowType::getListByPackage($this);
ksort($items);
return $items;
}
示例2: getPackageItems
public function getPackageItems(Package $package)
{
return Type::getListByPackage($package);
}