Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function execute()
 {
     $result = new BooleanValue();
     $left = (string) $this->left->setObject($this->object)->execute()->getValue();
     $right = (string) $this->right->setObject($this->object)->execute()->getValue();
     return $result->setValue(preg_match($left, '/' . str_replace('/', '\\/', $right) . '/u') !== FALSE);
 }
 /**
  * {@inheritdoc}
  */
 public function execute()
 {
     $result = new BooleanValue();
     $left = (string) $this->left->setObject($this->object)->execute()->getValue();
     $right = (string) $this->right->setObject($this->object)->execute()->getValue();
     return $result->setValue(strpos($left, $right) !== FALSE);
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 public function execute()
 {
     $return = new BooleanValue();
     foreach ($this->conditions as $condition) {
         if ((bool) $condition->setObject($this->object)->execute()->getValue()) {
             return $return->setValue(TRUE);
         }
     }
     return $return->setValue(FALSE);
 }
 /**
  * {@inheritdoc}
  */
 public function execute()
 {
     $result = new BooleanValue();
     return $result->setValue($this->left->setObject($this->object)->execute() < $this->right->setObject($this->object)->execute());
 }