예제 #1
0
 /**
  * Set the form name and initiate a call to the table specified in $this->_name;
  * @param string $p_sFormName
  * @return void
  */
 function __construct($p_sFormName)
 {
     $this->_formName = $p_sFormName;
     $this->oField = new PPI_Model_Form_Field();
     $this->oRule = new PPI_Model_Form_Rule($this->_formName);
     parent::__construct($this->_name, $this->_primary);
 }
예제 #2
0
 function setTemplate($p_sTemplate, $p_aReplacerData = array())
 {
     // get the template data, does the template exist ?
     $rows = parent::getList("name = '{$p_sTemplate}'");
     if (count($rows) < 1) {
         throw new PPI_Exception('Trying to use Email Template: ' . $p_sTemplate . ' but it doesn\'t exist');
     }
     // set the replacer data if its been specified here.
     if (count($p_aReplacerData) > 0) {
         $this->setReplacerData($p_aReplacerData);
     }
     $this->_subject = $rows[0]['subject'];
     $this->_body = $rows[0]['body'];
     $this->_sender = $rows[0]['from'];
     $this->_templateName = $p_sTemplate;
     return $this;
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct('ppi_errors', 'id');
 }
예제 #4
0
 function __construct($p_sFormName)
 {
     $this->_formName = $p_sFormName;
     parent::__construct($this->_name, $this->_primary);
 }
예제 #5
0
 function __construct($p_iTableName = "", $p_iTableIndex = "", $p_sBdbInfo = "", $p_iRecordID = 0)
 {
     parent::__construct($p_iTableName, $p_iTableIndex, $p_sBdbInfo, $p_iRecordID);
 }
예제 #6
0
 function __construct()
 {
     parent::__construct($this->_name, $this->_primary);
 }
예제 #7
0
 /**
  * The shared model you can pass in a dynamic table name, primary key into
  *
  * @param string $p_sTableName The table name
  * @param string $p_sPrimaryKey The primary key
  */
 function __construct($p_sTableName, $p_sPrimaryKey)
 {
     parent::__construct($p_sTableName, $p_sPrimaryKey);
 }