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; }
function init() { parent::init(); $this->_data = array_merge($this->_data, array('topicId' => 0, 'topicIdNot' => 0, 'isDates' => true, 'uriController' => 'news', 'uriItem' => 'item')); }
function init() { parent::init(); $this->imgs['folder'] = 'sections'; }