private function checkUser($user) { $config = Zend_Registry::get('appconf'); if ($config->user->flag != 1) { return true; } $result = false; try { $id = $this->uName2uID($user); $hugeList = new Zing_HugeList_ServiceR(); $result = $hugeList->hasEntry($id); } catch (Exception $e) { } return $result; }
/** * * @return Zing_HugeList_ServiceR */ private function _getReadService() { if ($this->_read != null) { return $this->_read; } if ($this->_read_options == null) { throw new Exception("No config for read instance", -1); } $this->_read = Zing_HugeList_ServiceR::getInstance($this->_authkey, $this->_application_id, $this->_read_options); return $this->_read; }
public function addAction() { var_dump('a'); die; $zinghuglib = new Zing_HugeList_Service(); $name2ID = new Zing_Name2ID_ServiceR(); $id = $name2ID->getID('redphx'); var_dump($id); $zinghuglib->add($id); $hugeList = new Zing_HugeList_ServiceR(); $result = $hugeList->hasEntry($id); var_dump($result); die; }