public function getRulesAsString($iGroupId)
    {
        $aRules = $this->getRulesAsArray($iGroupId);

        if (empty($aRules)) {
            return '';
        }

        $sStr = 'Passwords must ' . strtolower(implode(', ', $aRules)) . '.';
        return str_lreplace(', ', ' and ', $sStr);
    }
public function getRulesAsString($iGroupId)
    {
        $aRules = $this->getRulesAsArray($iGroupId);

        if (empty($aRules)) {
            return '';
        }

        $sStr = 'Passwords must ' . strtolower(implode(', ', $aRules)) . '.';
        return str_lreplace(', ', ' and ', $sStr);
    }
public function getRulesAsString ( $ iGroupId ) { $ aRules = $ this -> getRulesAsArray ( $ iGroupId ) ; if ( empty ( $ aRules ) ) { return '' ; } $ sStr = 'Passwords must ' . strtolower ( implode ( ', ' , $ aRules ) ) . '.' ; return str_lreplace ( ', ' , ' and ' , $ sStr ) ; }
Returns the app's password rules as a formatted string

@param integer $iGroupId The group who's rules to fetch

@return string
Returns the app s password rules as a formatted string