Example #1
0
 /**
  * Get/Set sent status of a Order.
  * @param  integer $no
  * @param  boolean $sent
  * @return boolean
  */
 public function sent($no, $sent = NULL)
 {
     $handle = array('orderHandle' => $this->getHandle($no));
     if (is_null($sent)) {
         return $this->client->Order_GetIsSent($handle)->Order_GetIsSentResult;
     }
     if (!!$sent) {
         $this->client->Order_RegisterAsSent($handle);
     } else {
         $this->client->Order_CancelSentStatus($handle);
     }
     return true;
 }