src/bbn/user.php
public function get_name($usr = null){
    if ( $this->auth ){
      if ( \is_null($usr) ){
        $usr = $this->get_session();
      }
      else if ( str::is_uid($usr) ){
        $mgr = $this->get_manager();
        $usr = $mgr->get_user($usr);
      }
      if ( isset($usr[$this->class_cfg['show']]) ){
        return $usr[$this->class_cfg['show']];
      }
    }
    return false;
  }
public function get_name($usr = null){
    if ( $this->auth ){
      if ( \is_null($usr) ){
        $usr = $this->get_session();
      }
      else if ( str::is_uid($usr) ){
        $mgr = $this->get_manager();
        $usr = $mgr->get_user($usr);
      }
      if ( isset($usr[$this->class_cfg['show']]) ){
        return $usr[$this->class_cfg['show']];
      }
    }
    return false;
  }
public function get_name ( $ usr = null ) { if ( $ this -> auth ) { if ( \ is_null ( $ usr ) ) { $ usr = $ this -> get_session ( ) ; } else if ( str :: is_uid ( $ usr ) ) { $ mgr = $ this -> get_manager ( ) ; $ usr = $ mgr -> get_user ( $ usr ) ; } if ( isset ( $ usr [ $ this -> class_cfg [ 'show' ] ] ) ) { return $ usr [ $ this -> class_cfg [ 'show' ] ] ; } } return false ; }
Returns the written name of this or a user
@return string|false
Returns the written name of this or a user