本文整理汇总了PHP中Concrete\Core\Attribute\Type::getAttributeTypeList方法的典型用法代码示例。如果您正苦于以下问题:PHP Type::getAttributeTypeList方法的具体用法?PHP Type::getAttributeTypeList怎么用?PHP Type::getAttributeTypeList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Concrete\Core\Attribute\Type
的用法示例。
在下文中一共展示了Type::getAttributeTypeList方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: on_start
public function on_start()
{
parent::on_start();
$this->set('category', AttributeKeyCategory::getByHandle('collection'));
$otypes = AttributeType::getAttributeTypeList('collection');
$types = array();
foreach ($otypes as $at) {
$types[$at->getAttributeTypeID()] = $at->getAttributeTypeDisplayName();
}
$this->set('types', $types);
}
示例2: getResults
public function getResults(Request $request)
{
$list = Type::getAttributeTypeList();
$items = array();
foreach ($list as $type) {
$attributeType = new \PortlandLabs\Concrete5\MigrationTool\Entity\Export\AttributeType();
$attributeType->setItemId($type->getAttributeTypeID());
$items[] = $attributeType;
}
return $items;
}
示例3: t
<?php
defined('C5_EXECUTE') or die("Access Denied.");
use Concrete\Core\Attribute\Type as AttributeType;
use Concrete\Core\Attribute\Key\Category as AttributeKeyCategory;
use Concrete\Core\Attribute\PendingType as PendingAttributeType;
$types = AttributeType::getAttributeTypeList();
$categories = AttributeKeyCategory::getList();
$txt = Loader::helper('text');
$form = Loader::helper('form');
$interface = Loader::helper('concrete/ui');
$valt = Core::make('token');
?>
<form method="post" class="" id="attribute_type_associations_form" action="<?php
echo $view->action('save_attribute_type_associations');
?>
">
<?php
$valt->output('save_attribute_type_associations');
?>
<table border="0" cellspacing="1" cellpadding="0" border="0" class="table">
<tr>
<th><?php
echo t('Name');
?>
</th>
<?php
foreach ($categories as $cat) {
?>
<th><?php
echo $txt->unhandle($cat->getAttributeKeyCategoryHandle());
示例4: view
public function view($id = null)
{
$entity = $this->getEntity($id);
$this->set('entity', $entity);
$this->renderList($entity->getAttributes(), Type::getAttributeTypeList());
}