public function translateToRoleId($role)
    {
        $lookup = array_flip($this->_roleTranslations);

        if (isset($lookup[$role])) {
            return $lookup[$role];
        }

        return $role;
    }
public function translateToRoleId($role)
    {
        $lookup = array_flip($this->_roleTranslations);

        if (isset($lookup[$role])) {
            return $lookup[$role];
        }

        return $role;
    }
public function translateToRoleId ( $ role ) { $ lookup = array_flip ( $ this -> _roleTranslations ) ; if ( isset ( $ lookup [ $ role ] ) ) { return $ lookup [ $ role ] ; } return $ role ; }
Translate string role id to numeric role id

@param string $role
@return array Of role id's
Translate string role id to numeric role id