public static function renderList() { $options = []; $options['where'][] = 'folder.status IN (0,1)'; $options['order'][] = 'folder.display_order, folder.modified_date, folder.title'; $folders = Data::loadAll($options); $list = []; self::buildList($folders, 0, 0, $list); return $list; }
public function buildFolder() { $options = []; $options['clearSelect'] = true; $options['select'][] = \Rebond\Core\Folder\Data::getList(['id', 'title']); $models = \Rebond\Core\Folder\Data::loadAll($options); return Util\Form::buildDropdownList('folderId' . $this->unique, $models, 'id', 'title', $this->getModel()->getFolderId(), $this->folderValidator['foreignKey']); }