Exemplo n.º 1
0
 /**
  * @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');
             }
         }
     }
 }
Exemplo n.º 2
0
 /**
  * @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');
                     }
                 }
             }
         }
     }
 }
Exemplo n.º 3
0
	public static function getColumnHeaderList() {
		return parent::getList('file', array('akIsColumnHeader' => 1));	
	}
Exemplo n.º 4
0
	
		<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>
Exemplo n.º 5
0
 public static function getList()
 {
     return parent::getList('collection');
 }
Exemplo n.º 6
0
 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);
         }
     }
 }
Exemplo n.º 7
0
 public static function getUserAddedList()
 {
     return parent::getList('user', array('akIsAutoCreated' => 0));
 }