public function getPasswordRules(array $codes)
    {
        // Process the codes array to a format better used for filtering
        $codes = array_change_key_case(array_flip(array_filter($codes)));
        // \MUtil_Echo::track($codes);

        $rules = array();
        if ($this->offsetExists('passwords') && is_array($this->passwords)) {
            $this->_getPasswordRules($this->passwords, $codes, $rules);
        }

        return $rules;
    }
public function getPasswordRules(array $codes)
    {
        // Process the codes array to a format better used for filtering
        $codes = array_change_key_case(array_flip(array_filter($codes)));
        // \MUtil_Echo::track($codes);

        $rules = array();
        if ($this->offsetExists('passwords') && is_array($this->passwords)) {
            $this->_getPasswordRules($this->passwords, $codes, $rules);
        }

        return $rules;
    }
public function getPasswordRules ( array $ codes ) { // Process the codes array to a format better used for filtering
 $ codes = array_change_key_case ( array_flip ( array_filter ( $ codes ) ) ) ; // \MUtil_Echo::track($codes);
 $ rules = array ( ) ; if ( $ this -> offsetExists ( 'passwords' ) && is_array ( $ this -> passwords ) ) { $ this -> _getPasswordRules ( $ this -> passwords , $ codes , $ rules ) ; } return $ rules ; }
Get the rules active for this specific set of codes.

@param array $codes An array of code names that identify rules that should be used only for those codes.
@return array
Get the rules active for this specific set of codes .