Lines Matching refs:entity

87         $entity = $this->_findUser( $user );
88 if ( $entity > 0 ) {
89 return $this->_checkUserPassword( $entity, $pass );
91 $entity = $this->_findAdmin( $user );
92 if ( $entity > 0 ) {
93 return $this->_checkAdminPassword( $entity, $pass );
114 $entity = $this->_findUser( $user );
115 if ( $entity > 0 ) {
116 $name = "{$this->users[$entity]['first']} {$this->users[$entity]['last']}";
118 if ( ! isset( $this->users[$entity]['mail']) ) $this->_loadMailAddress( $entity );
120 if ( ! isset( $this->users[$entity]['groups']) ) $this->_loadUserGroups( $entity );
123 $groups = $this->users[$entity]['groups'];
136 $data['mail'] = $this->users[$entity]['mail'];
140 $entity = $this->_findAdmin( $user );
141 if ( $entity > 0 ) {
142 if ( ! isset( $this->admins[$entity]['roles']) ) $this->_loadAdminRoles( $entity );
145 $groups = $this->admins[$entity]['roles'];
157 $data['name'] = "{$this->admins[$entity]['first']} {$this->admins[$entity]['last']}";
158 $data['mail'] = $this->admins[$entity]['mail'];
353 $entity = 0;
360 $entity = $entry['entity'];
364 $entity = $entry['entity'];
368 if ( $count == 1 ) return $entity;
378 * @param int $entity the entity of the user
381 protected function _checkUserPassword( $entity, $pass ) { argument
388 ….value hash from customer_entity_varchar a where a.attribute_id = 12 and a.entity_id = {$entity};";
391 if ( $entity === $row['entity'] ) {
432 * @param int $entity the entity of the user
435 protected function _checkAdminPassword( $entity, $pass ) { argument
442 $sql = "select user_id entity,password hash from admin_user where user_id = {$entity};";
445 if ( $entity === $row['entity'] ) {
529 protected function _loadMailAddress( $entity ) { argument
530 $this->users[$entity]['mail'] = "default";
538 …l = "select a.entity_id entity,a.email mail from customer_entity a where a.entity_id = {$entity};";
540 if ( $entity === $row['entity'] ) {
541 $this->users[$entity]['mail'] = $row['mail'];
559 protected function _loadUserGroups( $entity ) { argument
560 $this->users[$entity]['groups'] = array();
570 …er_entity a, customer_group b where a.group_id = b.customer_group_id and a.entity_id = {$entity};";
572 if ( $entity === $row['entity'] ) {
574 $this->users[$entity]['groups'] = array( $name );
626 protected function _loadAdminRoles( $entity ) { argument
627 $this->admins[$entity]['roles'] = array();
640 …type,parent_id parent,tree_level level from admin_role where user_id = {$entity} order by tree_lev…
652 array_push( $this->admins[$entity]['roles'] , $name );