public function getRole($force = false)
     {
         if ($this->nb_role === null || $force) {
             $this->nb_role = null;
             if ($this->isValueNumeric('nb_role_id')) {
                 $nb_role = new CNabuRole($this);
                 if ($nb_role->isFetched()) {
                     $this->nb_role = $nb_role;
                 }
             }
         }

         return $this->nb_role;
     }
public function getRole($force = false)
     {
         if ($this->nb_role === null || $force) {
             $this->nb_role = null;
             if ($this->isValueNumeric('nb_role_id')) {
                 $nb_role = new CNabuRole($this);
                 if ($nb_role->isFetched()) {
                     $this->nb_role = $nb_role;
                 }
             }
         }

         return $this->nb_role;
     }
public function getRole ( $ force = false ) { if ( $ this -> nb_role === null || $ force ) { $ this -> nb_role = null ; if ( $ this -> isValueNumeric ( 'nb_role_id' ) ) { $ nb_role = new CNabuRole ( $ this ) ; if ( $ nb_role -> isFetched ( ) ) { $ this -> nb_role = $ nb_role ; } } } return $ this -> nb_role ; }
Gets the Role instance.
@param bool $force If true, forces to load Role from storage.
@return CNabuRole|null Returns the Role instance if setted or null if not.
Gets the Role instance .