| @@ 763-773 (lines=11) @@ | ||
| 760 | * @return array|\Admin\Model\UserTable |
|
| 761 | * @throws \Exception |
|
| 762 | */ |
|
| 763 | public function getUserTable() |
|
| 764 | { |
|
| 765 | if (!$this->userTable) { |
|
| 766 | $sm = $this->getServiceLocator(); |
|
| 767 | $this->userTable = $sm->get('Admin\Model\UserTable'); |
|
| 768 | if (!$this->userTable instanceof \Admin\Model\UserTable) { |
|
| 769 | throw new \Exception("invalid user table object: ".gettype($this->userTable)); |
|
| 770 | } |
|
| 771 | } |
|
| 772 | return $this->userTable; |
|
| 773 | } |
|
| 774 | ||
| 775 | /** |
|
| 776 | * retrieve ACL roles table mapper |
|
| @@ 781-791 (lines=11) @@ | ||
| 778 | * @return array|\Admin\Model\AclroleTable |
|
| 779 | * @throws \Exception |
|
| 780 | */ |
|
| 781 | public function getAclroleTable() |
|
| 782 | { |
|
| 783 | if (!$this->aclroleTable) { |
|
| 784 | $sm = $this->getServiceLocator(); |
|
| 785 | $this->aclroleTable = $sm->get('Admin\Model\AclroleTable'); |
|
| 786 | if (!$this->aclroleTable instanceof \Admin\Model\AclroleTable) { |
|
| 787 | throw new \Exception("invalid ACL role table object: ".gettype($this->aclroleTable)); |
|
| 788 | } |
|
| 789 | } |
|
| 790 | return $this->aclroleTable; |
|
| 791 | } |
|
| 792 | ||
| 793 | /** |
|
| 794 | * retrieve ZfcUser\ModuleOptions |
|