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);
 }