Esempio n. 1
0
 /**
  * @param string $action
  * @param array $criteria
  * @param array $postData
  * @return array|void
  * @throws Exception
  */
 public function operate($action = '', array $criteria = [], array $postData = [])
 {
     if (!$this->_client->getAuth()->getUserData()) {
         throw new Exception("NOT AUTHENTICATED IN ISIDORE");
     }
     $url = 'proxies/ajax/' . $this->getStoreMetaName();
     return $this->_client->operate($url . '--' . $action, $criteria, $postData);
 }
Esempio n. 2
0
 /**
  * @param string $action
  * @param array $criteria
  * @param array $postData
  * @return array|void
  * @throws Exception
  */
 public function operate($action = '', array $criteria = [], array $postData = [])
 {
     if (!$this->_client->getAuth()->getUserData()) {
         throw new Exception("NOT AUTHENTICATED IN ISIDORE");
     }
     return $this->getManager()->operate($action, $criteria, $postData);
 }