コード例 #1
0
 public function get($key = '')
 {
     if ($this->key($key) == 'hosts' || $this->key($key) == 'hostsnotinme') {
         $this->loadHosts();
     }
     return parent::get($key);
 }
コード例 #2
0
 public function get($key = '')
 {
     // Path: Always remove trailing slash on NFS path
     if ($this->key($key) == 'path') {
         return rtrim(parent::get($key), '/');
     }
     // FOGController get()
     return parent::get($key);
 }
コード例 #3
0
 public function get($key = '')
 {
     if ($this->key($key) == 'hosts' || $this->key($key) == 'hostsnotinme') {
         $this->loadHosts();
     } else {
         if ($this->key($key) == 'storageGroups') {
             $this->loadGroups();
         }
     }
     return parent::get($key);
 }
コード例 #4
0
 public function get($key = '')
 {
     if ($this->key($key) == 'mac') {
         $this->loadPrimary();
     } else {
         if ($this->key($key) == 'additionalMACs') {
             $this->loadAdditional();
         } else {
             if ($this->key($key) == 'pendingMACs') {
                 $this->loadPending();
             } else {
                 if (in_array($this->key($key), array('printers', 'printersnotinme'))) {
                     $this->loadPrinters();
                 } else {
                     if (in_array($this->key($key), array('snapins', 'snapinsnotinme'))) {
                         $this->loadSnapins();
                     } else {
                         if ($this->key($key) == 'snapinjob') {
                             $this->loadSnapinJob();
                         } else {
                             if ($this->key($key) == 'modules') {
                                 $this->loadModules();
                             } else {
                                 if ($this->key($key) == 'inventory') {
                                     $this->loadInventory();
                                 } else {
                                     if (in_array($this->key($key), array('groups', 'groupsnotinme'))) {
                                         $this->loadGroups();
                                     } else {
                                         if ($this->key($key) == 'task') {
                                             $this->loadTask();
                                         } else {
                                             if ($this->key($key) == 'users') {
                                                 $this->loadUsers();
                                             } else {
                                                 if ($this->key($key) == 'optimalStorageNode') {
                                                     $this->loadOptimalStorageNode();
                                                 }
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
     return parent::get($key);
 }