Exemplo n.º 1
0
 public function get_org()
 {
     $id = 1;
     $data = array();
     if ($id) {
         $ret = $this->obj->detail($id);
         if ($ret['org_id']) {
             include_once ROOT_PATH . 'lib/class/auth.class.php';
             $auth = new auth();
             $data = $auth->get_org($ret['org_id']);
         }
     }
     return $data;
 }
Exemplo n.º 2
0
 public function get_org()
 {
     $id = intval($this->input['id']) ? intval($this->input['id']) : 0;
     $data = array();
     if ($id) {
         $ret = $this->obj->detail($id);
         if ($ret['org_id']) {
             include_once ROOT_PATH . 'lib/class/auth.class.php';
             $auth = new auth();
             $data = $auth->get_org($ret['org_id']);
         }
     }
     $this->addItem($data);
     $this->output();
 }