public function getPageTypeComposerControlObjects()
 {
     $objects = array();
     $keys = AttributeKey::getList('collection');
     foreach ($keys as $ak) {
         $ac = new CollectionAttributeControl();
         $ac->setAttributeKeyID($ak->getAttributeKeyID());
         $ac->setPageTypeComposerControlIconSRC($ak->getAttributeKeyIconSRC());
         $ac->setPageTypeComposerControlName($ak->getAttributeKeyDisplayName());
         $objects[] = $ac;
     }
     return $objects;
 }
Esempio n. 2
0
 public static function getList()
 {
     return parent::getList('store_product');
 }
Esempio n. 3
0
 public static function getList()
 {
     return parent::getList('collection');
 }
Esempio n. 4
0
 public static function getUserAddedList()
 {
     return parent::getList('user', array('akIsAutoCreated' => 0));
 }
 public static function getSearchableList()
 {
     return parent::getList('attribute_form', array('akIsSearchable' => 1));
 }
Esempio n. 6
0
 public static function getList()
 {
     return parent::getList('store_order');
 }
Esempio n. 7
0
 public static function getColumnHeaderList()
 {
     return parent::getList('file', array('akIsColumnHeader' => 1));
 }
Esempio n. 8
0
    echo $set->getAttributeSetID();
    ?>
" />
                <?php 
    echo Loader::helper('validation/token')->output('update_set_attributes');
    ?>
                <fieldset>

                    <legend><?php 
    echo t('Add Attributes to Set');
    ?>
</legend>

                    <?php 
    $cat = AttributeKeyCategory::getByID($set->getAttributeSetKeyCategoryID());
    $list = AttributeKey::getList($cat->getAttributeKeyCategoryHandle());
    $unassigned = $cat->getUnassignedAttributeKeys();
    if (count($list) > 0) {
        ?>

                        <div class="form-group">
                            <?php 
        foreach ($list as $ak) {
            $disabled = '';
            if (!in_array($ak, $unassigned) && !$ak->inAttributeSet($set)) {
                $disabled = array('disabled' => 'disabled');
            }
            ?>
                                <div class="checkbox">
                                    <label>
                                        <?php 
Esempio n. 9
0
 public static function getList()
 {
     return parent::getList('form');
 }