/** * @see \C5TL\Parser\DynamicItem::parseManual() */ public function parseManual(\Gettext\Translations $translations, $concrete5version) { if (class_exists('\\AttributeKeyCategory', true) && class_exists('\\AttributeKey', true)) { foreach (\AttributeKeyCategory::getList() as $akc) { foreach (\AttributeKey::getList($akc->getAttributeKeyCategoryHandle()) as $ak) { $this->addTranslation($translations, $ak->getAttributeKeyName(), 'AttributeKeyName'); } } } }
/** * @see \C5TL\Parser\DynamicItem::parseManual() */ public function parseManual(\Gettext\Translations $translations, $concrete5version) { if (class_exists('\\AttributeKeyCategory', true) && class_exists('\\AttributeKey', true) && class_exists('\\AttributeType', true)) { foreach (\AttributeKeyCategory::getList() as $akc) { $akcHandle = $akc->getAttributeKeyCategoryHandle(); foreach (\AttributeKey::getList($akcHandle) as $ak) { if ($ak->getAttributeType()->getAttributeTypeHandle() === 'select') { foreach ($ak->getController()->getOptions() as $option) { $this->addTranslation($translations, $option->getSelectAttributeOptionValue(false), 'SelectAttributeValue'); } } } } } }
public static function getColumnHeaderList() { return parent::getList('file', array('akIsColumnHeader' => 1)); }
<form class="" method="post" action="<?php echo $this->action('update_set_attributes'); ?> "> <input type="hidden" name="asID" value="<?php echo $set->getAttributeSetID(); ?> " /> <?php echo Loader::helper('validation/token')->output('update_set_attributes'); ?> <?php $cat = AttributeKeyCategory::getByID($set->getAttributeSetKeyCategoryID()); $list = AttributeKey::getList($cat->getAttributeKeyCategoryHandle()); $unassigned = $cat->getUnassignedAttributeKeys(); if (count($list) > 0) { ?> <div class="clearfix"> <ul class="inputs-list"> <?php foreach ($list as $ak) { $disabled = ''; if (!in_array($ak, $unassigned) && !$ak->inAttributeSet($set)) { $disabled = array('disabled' => 'disabled'); } ?> <li>
public static function getList() { return parent::getList('collection'); }
public static function exportList($xml) { $categories = AttributeKeyCategory::getList(); $axml = $xml->addChild('attributekeys'); foreach ($categories as $cat) { $attributes = AttributeKey::getList($cat->getAttributeKeyCategoryHandle()); foreach ($attributes as $at) { $at->export($axml); } } }
public static function getUserAddedList() { return parent::getList('user', array('akIsAutoCreated' => 0)); }