/** * Sets office and code if they are present. * * @access public */ public function __construct($office = null, $code = null) { parent::__construct(); $this->add('type', 'article'); if (null !== $office) { $this->setOffice($office); } if (null !== $code) { $this->setCode($code); } }
/** * Sets the <type> to dimensions for the request and * sets the dimtype, office and code if they are present. * * @access public */ public function __construct($office = null, $code = null, $dimType = 'DEB') { parent::__construct(); $this->add('type', 'dimensions'); if (null !== $office) { $this->setOffice($office); } if (null !== $code) { $this->setCode($code); } $this->setDimType($dimType); }
/** * Sets the <type> to salesinvoice for the request * and sets the office, code and number if they * are present. * * @access public * @param int $office * @param string $code * @param int $number */ public function __construct($office = null, $code = null, $number = null) { parent::__construct(); $this->add('type', 'salesinvoice'); if (null !== $office) { $this->setOffice($office); } if (null !== $code) { $this->setCode($code); } if (null !== $number) { $this->setNumber($number); } }