getId() public method

Get id
public getId ( ) : integer
return integer
 public function getId()
 {
     if ($this->__isInitialized__ === false) {
         return (int) $this->_identifier["id"];
     }
     $this->__load();
     return parent::getId();
 }
Example #2
0
 /**
  * Get role id
  *
  * @return int
  */
 public function getRoleId()
 {
     return $this->role ? $this->role->getId() : 0;
 }