/** * Create a new QuickBooks_Object_ServiceItem object (ServiceItem) */ public function __construct($arr = array(), $is_sales_and_purchase = false) { parent::__construct($arr); if (count($this->getArray('SalesAndPurchase')) > 0) { $is_sales_and_purchase = true; } $this->_is_sales_and_purchase = $is_sales_and_purchase; }
/** * Create a new QuickBooks_Object_Class object * * @param array $arr */ public function __construct($arr = array()) { parent::__construct($arr); // These things occur because it's a repeatable element who name doesn't do the *Add, *Mod, *Ret thing, trash these $unsets = array('RelatedUnit Name', 'RelatedUnit Abbreviation', 'RelatedUnit ConversionRatio', 'DefaultUnit UnitUsedFor', 'DefaultUnit Unit'); foreach ($unsets as $unset) { if (isset($this->_object[$unset])) { unset($this->_object[$unset]); } } }
public function __construct($arr = array()) { parent::__construct($arr); // These two things occur because it's a repeatable element who name doesn't do the *Add, *Mod, *Ret thing, trash these if (isset($this->_object['ItemSalesTaxRef FullName'])) { unset($this->_object['ItemSalesTaxRef FullName']); } if (isset($this->_object['ItemSalesTaxRef ListID'])) { unset($this->_object['ItemSalesTaxRef ListID']); } }
/** * Create a new QuickBooks_Object_Department object * * @param array $arr */ public function __construct($arr = array()) { parent::__construct($arr); }
public function __construct($arr = array(), $override = '') { $this->_override = $override; parent::__construct($arr); }