Beispiel #1
0
 /**
 * query the object with path and query parameters from Xapp_Util_Json_Query::find method and use store
 * methods on search result, e.g.
 * <code>
 * $store = Xapp_Util_Json_Store::create($object)
     ->query('/firstElement', array("id=1000"))
     ->query('.', array('title=foo'))
     ->set(null, 1);
 * </code>
 *
 * the query method must be terminated with a store method!
 *
 * @see Xapp_Util_Std_Query::find
 * @error 17005
 * @param string $path expects the optional search path as outlined above
 * @param array $query expects the optional query filter chain as explained above
 * @param null|string $result_flag expects optional result flag "first" or "last"
 * @return $this
 */
 public function query($path, array $query = null, $result_flag = 'first')
 {
     $this->_result =& Xapp_Util_Json_Query::find($this->_object, $path, $query, $result_flag);
     return $this;
 }