Exemple #1
0
 /**
  * @param   midxed $identity
  * @param   mixed $service
  * @return  Zend_Model_DbTable_Row
  *
  */
 public static function getAgent($identity = null, $service = null)
 {
     if (empty($identity)) {
         throw new Exception('no indentity exists');
     }
     if (empty($service)) {
         throw new Exception('no service assoc');
     }
     $provider = SocialConnect_Model_DbTable_Services::getService($service);
     $inst = self::factory();
     $select = $inst->select()->where('identity=?', $identity)->where('service_id=?', $provider->service_id);
     return $inst->fetchRow($select);
 }
Exemple #2
0
 public function indexAction()
 {
     $this->view->items = SocialConnect_Model_DbTable_Services::getServices();
     $tableAgent = new SocialConnect_Model_DbTable_Agents();
     $this->view->agents = $tableAgent->getAssociateAgents();
 }