public function getListContents($iRowStart = 0, $iRowCount = null) { $aResult = array(); foreach (TagInstancePeer::getTaggedModels() as $sModel => $sModelName) { $aResult[] = array('title' => $sModelName, 'tag_model_name' => $sModel); } $aResult = array_merge(self::getCustomListElements(), $aResult); return $aResult; }
public function getConfigurationModes() { $aResult = array(); $aResult['templates'] = AdminManager::getSiteTemplatesForListOutput(); $aResult['tags'] = array(); foreach (TagPeer::doSelect(new Criteria()) as $oTag) { $aResult['tags'][] = array('name' => $oTag->getName(), 'count' => $oTag->countTagInstances(), 'id' => $oTag->getId()); } $aResult['types'] = TagInstancePeer::getTaggedModels(); return $aResult; }