Newscoop\Entity\User::getProperty PHP Метод

getProperty() публичный Метод

Get an enity property
Устаревший: legacy from frontend controllers
public getProperty ( $p_key ) : mixed
$p_key
Результат mixed
    public function getProperty($p_key)
    {
        if (method_exists($this, $p_key)) {
            return $this->{$p_key}();
        } else {
            throw new \InvalidArgumentException("User Property '{$p_key}' not found");
        }
    }

Usage Example

Пример #1
0
 public function getProperty($p_key)
 {
     $this->__load();
     return parent::getProperty($p_key);
 }