Example #1
0
 /**
  * Expected properties:
  *
  *     - area
  *     - number
  *     - extension
  */
 public function __construct($data = null)
 {
     if (is_string($data)) {
         $data = $this->parse($data);
     }
     parent::__construct($data);
 }
 public function aliases()
 {
     parent::aliases();
     if (isset($this->amount)) {
         $this->amount_formatted = PSU_MoneyFormatter::create()->format($this->amount);
     }
 }
 public function __construct($term_code = null, $data = null)
 {
     if (!$data) {
         $data = self::load($term_code);
     }
     //end if
     parent::__construct($data);
 }
 public function __construct($row = null)
 {
     // Is row actually a row identifier
     if ($row && !is_array($row)) {
         $row = static::row($row);
     }
     parent::__construct($row);
 }
Example #5
0
 /**
  * constructor
  */
 public function __construct($pidm)
 {
     if (!is_array($pidm)) {
         $pidm = array('pidm' => $pidm);
     }
     //end else
     parent::__construct($pidm);
 }
Example #6
0
 /**
  * constructor
  *
  * @param $row array Array of row elements
  */
 public function __construct($row = null)
 {
     if ($row) {
         // get rid of table name from field names
         $row = \PSU::cleanKeys('tbrdepo_', '', $row);
     }
     //end if
     parent::__construct($row);
 }
Example #7
0
 /**
  * constructor
  *
  * @param $table \b table the update/insert will be done against
  * @param $db \b database to connect to
  */
 public function __construct($table, $db = 'banner')
 {
     $this->db = $db;
     // retrieve the possible pieces of the table
     $parsed = self::name_parse($table);
     $this->name = $parsed['table'];
     $this->owner = $parsed['owner'];
     $this->link = $parsed['link'];
     parent::__construct($this->get());
 }
Example #8
0
 public function __construct($row = null)
 {
     if (!is_array($row)) {
         $row = array('address' => $row);
     }
     //end if
     parent::__construct($row);
     /*****
     		 * Gotta not do this for now until we write appropriate checks
     		 *
     		if( ! self::valid() ) {
     			throw new \InvalidArgumentException('You must pass in a valid email address. (passed: '.$this->address.')'); 
     		}//end if
     		 */
 }
 public function __construct($row = null)
 {
     parent::__construct($row);
     $this->type_ind = $this->type_ind();
     $this->detail_desc = $this->detail_desc();
 }
Example #10
0
 public function __construct($data = null)
 {
     $this->aliases['zip'] = 'postal_code';
     parent::__construct($data);
 }