예제 #1
0
 /**
  * @param Multiship_Order|null $order
  * @return bool
  */
 function validate($order = null)
 {
     if (isset($order->user_status_id) && $order->user_status_id == ORDER_DRAFT_STATUS) {
         $this->_critical = array();
     } else {
         $this->_critical = array("first_name", "last_name", "phone");
     }
     return parent::validate();
 }
예제 #2
0
 /**
  * @param Multiship_Order|null $order
  * @return bool
  */
 function validate($order = null)
 {
     if (isset($order->user_status_id) && $order->user_status_id == ORDER_DRAFT_STATUS) {
         $this->_critical = array();
     } else {
         $this->_critical = array("city", "street", "house");
     }
     return parent::validate();
 }
예제 #3
0
파일: order.php 프로젝트: sov-20-07/billing
 function validate()
 {
     $validated = parent::validate();
     if ($this->_wrongItem) {
         if (!$this->_wrongItem->validate()) {
             $validated = false;
         }
     }
     return $validated;
 }