Exemplo n.º 1
0
 public static function check_value($value, $msg = null)
 {
     if (is_null(self::$instance)) {
         self::$instance = new self();
     }
     BasicEnum::check_val(self::$instance, $value, $msg);
 }
Exemplo n.º 2
0
 /** @brief Defines the origin of the query.
  *
  * @remark @c on_assignment method is not called by this method.
  *
  * @param $from [in] origin of the query. It should be a value defined by
  *        @a AfsOrigin.
  *
  * @return current instance.
  * @exception Exception when provided origin value is invalid.
  */
 public function set_from($from, $feed = null)
 {
     AfsOrigin::check_value($from, 'Invalid query origin: ');
     $this->set_parameter('from', $from, $feed);
     return $this;
 }