Beispiel #1
0
 public static function get_instance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Beispiel #2
0
 private function _save()
 {
     $pid = intval($this->_param['pid']);
     $hostname = trim($this->_param['hostname']);
     $hostname = explode("\n", $hostname);
     $biz = Biz_Host::get_instance();
     $biz->delete_host($pid);
     foreach ($hostname as $h) {
         $biz->insert_host($pid, trim($h));
     }
     $this->_response->redirect(PageHelper::get_domain() . "/project/op?pid={$pid}");
 }