示例#1
0
 function __construct(&$oModule)
 {
     parent::__construct($oModule);
     $this->_aForm['params']['db']['table'] = $this->_oModule->_oDb->getPrefix() . 'entries';
     $this->_aForm['form_attrs']['action'] = BX_DOL_URL_ROOT . $this->_oModule->_oConfig->getBaseUri() . 'admin/';
     $this->_aForm['inputs']['author_id']['value'] = 0;
     $this->_aForm['inputs']['snippet']['checker']['params'][1] = $this->_oModule->_oConfig->getSnippetLength();
     $this->_aForm['inputs']['allow_comment_to'] = array('type' => 'hidden', 'name' => 'comment', 'value' => 0, 'db' => array('pass' => 'Int'));
     $this->_aForm['inputs']['allow_vote_to'] = array('type' => 'hidden', 'name' => 'vote', 'value' => 0, 'db' => array('pass' => 'Int'));
 }
示例#2
0
 function __construct(&$oModule)
 {
     parent::__construct($oModule);
     $this->_aForm['params']['db']['table'] = $this->_oModule->_oDb->getPrefix() . 'entries';
     $this->_aForm['form_attrs']['action'] = BX_DOL_URL_ROOT . $this->_oModule->_oConfig->getBaseUri() . 'post/';
     $this->_aForm['inputs']['content']['html'] = 2;
     unset($this->_aForm['inputs']['snippet']);
     unset($this->_aForm['inputs']['when']);
     unset($this->_aForm['inputs']['categories']);
 }