Example #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);
 }
Example #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;
 }
Example #3
0
 public function __construct()
 {
     parent::__construct('ppi_errors', 'id');
 }
Example #4
0
 function __construct($p_sFormName)
 {
     $this->_formName = $p_sFormName;
     parent::__construct($this->_name, $this->_primary);
 }
Example #5
0
 function __construct($p_iTableName = "", $p_iTableIndex = "", $p_sBdbInfo = "", $p_iRecordID = 0)
 {
     parent::__construct($p_iTableName, $p_iTableIndex, $p_sBdbInfo, $p_iRecordID);
 }
Example #6
0
 function __construct()
 {
     parent::__construct($this->_name, $this->_primary);
 }
Example #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);
 }