예제 #1
0
 function insertData($conf = null)
 {
     $auth = Zend_Auth::getInstance();
     if (!$auth->hasIdentity()) {
         return false;
     }
     $identity = $auth->getIdentity();
     if (empty($identity->id)) {
         return false;
     }
     $data['user_id'] = $identity->id;
     $r = Zend_Controller_Front::getInstance()->getRequest();
     if (is_null($conf)) {
         $data['type_id'] = 0;
     }
     $data2 = parent::_addTechInfo();
     $res = $this->insert(array_merge($data, $data2));
     return $res;
 }
예제 #2
0
 function init()
 {
     parent::init();
     $this->_data = array_merge($this->_data, array('topicId' => 0, 'topicIdNot' => 0, 'isDates' => true, 'uriController' => 'news', 'uriItem' => 'item'));
 }
예제 #3
0
 function init()
 {
     parent::init();
     $this->imgs['folder'] = 'sections';
 }