コード例 #1
0
ファイル: QuerySelector.php プロジェクト: cabello/selector
 /**
  * Return a dictionary (array with string keys pointing to values).
  *
  * @param string $path Path to look for info
  *
  * @return array Found data with keys and values
  */
 private function getDictionaryFromPath($path)
 {
     // Strip off {}
     $path = preg_replace('/(^\\{)|(\\}$)/', '', $path);
     list($keys, $values) = explode(':', $path);
     $selector = new Selector($this->data);
     return $selector->getDictionary($keys, $values);
 }