public function getPageTypeComposerControlObjects()
 {
     $objects = array();
     $keys = AttributeKey::getAttributeKeyList('collection');
     foreach ($keys as $ak) {
         $ac = new CollectionAttributeControl();
         $ac->setAttributeKeyID($ak->getAttributeKeyID());
         $ac->setPageTypeComposerControlIconFormatter($ak->getController()->getIconFormatter());
         $ac->setPageTypeComposerControlName($ak->getAttributeKeyDisplayName());
         $objects[] = $ac;
     }
     return $objects;
 }
 public function getResults(Request $request)
 {
     $category = Category::getByID($request->query->get('akCategoryID'));
     $items = array();
     if (is_object($category)) {
         $keys = Key::getAttributeKeyList($category->getAttributeKeyCategoryHandle());
         foreach ($keys as $key) {
             $item = new \PortlandLabs\Concrete5\MigrationTool\Entity\Export\AttributeKey();
             $item->setItemId($key->getAttributeKeyID());
             $items[] = $item;
         }
     }
     return $items;
 }
Ejemplo n.º 3
0
 public static function getList()
 {
     return parent::getAttributeKeyList('collection');
 }
Ejemplo n.º 4
0
 public static function getColumnHeaderList()
 {
     return parent::getAttributeKeyList('file', array('akIsColumnHeader' => 1));
 }
Ejemplo n.º 5
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::getAttributeKeyList($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 
Ejemplo n.º 6
0
 public static function getUserAddedList()
 {
     return parent::getAttributeKeyList('user', array('akIsAutoCreated' => 0));
 }