Beispiel #1
0
 /**
  * serversGrid
  * Get the servers information.
  * @return array
  */
 private function serversGrid()
 {
     $auth = Zend_Auth::getInstance();
     if ($auth->hasIdentity()) {
         $data = $auth->getIdentity();
         $isp = Doctrine::getTable('Isp')->findBy('email', $data['email'])->toArray();
         if (isset($isp[0])) {
             $servers = new Servers();
             $records = $servers->findAllbyIsp($isp[0]['isp_id'], 'server_id, name, ip, netmask', true);
             if (isset($records[0])) {
                 return array('records' => $records, 'editpage' => 'servers');
             }
         }
     }
 }