コード例 #1
0
ファイル: Helper.php プロジェクト: aleksabp/bolt
 public static function equalTo($value, $otherElementOrValue, $context = null)
 {
     if (func_num_args() == 2) {
         return $value == $otherElementOrValue;
     }
     return $value == Arr::getByPath($context, $otherElementOrValue);
 }
コード例 #2
0
ファイル: ArrayWrapper.php プロジェクト: rossriley/validation
 function getItemsBySelector($selector)
 {
     return Arr::getBySelector($this->data, $selector);
 }