Пример #1
0
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['partialClass'] = 'Kwf_Component_Partial_Id';
     $ret['placeholder']['noEntriesFound'] = false;
     return $ret;
 }
Пример #2
0
 public function getPartialParams()
 {
     $ret = parent::getPartialParams();
     $up = Kwf_Config::getValue('application.uniquePrefix');
     if ($up) {
         $up = $up . '-';
     }
     $ret['tpl'] = '<div class="' . $up . 'kwfViewAjaxItem">{content}</div>' . "\n";
     return $ret;
 }
Пример #3
0
 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $ret['options'] = $this->_getSetting('mapOptions');
     if ($this->_getSearchForm()) {
         if (!Kwc_Abstract::getSetting($this->_getSearchForm()->componentClass, 'useAjaxRequest')) {
             throw new Kwf_Exception_NotYetImplemented();
         }
         $ret['options']['searchFormComponentId'] = $this->_getSearchForm()->componentId;
     }
     $ret['options']['baseParams']['componentId'] = $this->getData()->componentId;
     $ret['options']['markers'] = Kwc_Admin::getInstance($this->getData()->componentClass)->getControllerUrl('Markers') . '/json-index';
     return $ret;
 }
Пример #4
0
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['items'] = $this->_getItems();
     return $ret;
 }
Пример #5
0
 public function getPartialVars($partial, $nr, $info)
 {
     $ret = parent::getPartialVars($partial, $nr, $info);
     $ret['content'] = $ret['item']->getChildComponent('-content');
     return $ret;
 }
Пример #6
0
class Kwc_Directories_List_View_ComponentNonPartial extends Kwc_Directories_List_View_Component
{
    public function getTemplateVars()
    {
        $ret = parent::getTemplateVars();
        $ret['items'] = $this->_getItems();
Пример #7
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['partialClass'] = 'Kwf_Component_Partial_Id';
     return $ret;
 }
Пример #8
0
 public function getPartialVars($partial, $nr, $info)
 {
     $ret = parent::getPartialVars($partial, $nr, $info);
     $ret['showPreviewImage'] = $this->_getSetting('showPreviewImage');
     return $ret;
 }
Пример #9
0
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['generators']['child']['component']['paging'] = 'Kwf_Component_Cache_Paging_Directory_View_Paging_Component';
     return $ret;
 }
Пример #10
0
 public function getPartialParams()
 {
     $ret = parent::getPartialParams();
     $ret['tpl'] = '<div class="kwfViewAjaxItem {id}">{content}</div>' . "\n";
     return $ret;
 }
Пример #11
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['viewCache'] = false;
     return $ret;
 }