src/Common/Service/Database.php
protected function resetProperties($aProperties)
    {
        foreach ($aProperties as $aProperty) {
            if (property_exists($this->oDb, $aProperty[0])) {
                $this->oDb->{$aProperty[0]} = $aProperty[1];
            }
        }

        return $this;
    }
protected function resetProperties($aProperties)
    {
        foreach ($aProperties as $aProperty) {
            if (property_exists($this->oDb, $aProperty[0])) {
                $this->oDb->{$aProperty[0]} = $aProperty[1];
            }
        }

        return $this;
    }
protected function resetProperties ( $ aProperties ) { foreach ( $ aProperties as $ aProperty ) { if ( property_exists ( $ this -> oDb , $ aProperty [ 0 ] ) ) { $ this -> oDb -> { $ aProperty [ 0 ] } = $ aProperty [ 1 ] ; } } return $ this ; }
Safely resets properties

@param array $aProperties The properties to reset; a multi-dimensional array where index 0 is the property and
index 1 is the value.

@return $this
Safely resets properties