Scalr\Service\Aws\Rds\V20141031\RdsApi::_loadDBParameterGroupData PHP Метод

_loadDBParameterGroupData() защищенный Метод

Loads DBParameterGroupData from simple xml object
protected _loadDBParameterGroupData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\Rds\DataType\DBParameterGroupData
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\Rds\DataType\DBParameterGroupData Returns DBParameterGroupData
    protected function _loadDBParameterGroupData(\SimpleXMLElement $sxml)
    {
        $item = null;
        if ($this->exist($sxml)) {
            $dbParameterGroupName = (string) $sxml->DBParameterGroupName;
            $item = $this->rds->getEntityManagerEnabled() ? $this->rds->dbParameterGroup->get($dbParameterGroupName) : null;
            if ($item === null) {
                $item = new DBParameterGroupData($dbParameterGroupName, $this->exist($sxml->DBParameterGroupFamily) ? (string) $sxml->DBParameterGroupFamily : null, $this->exist($sxml->Description) ? (string) $sxml->Description : null);
                $item->setRds($this->rds);
                $bAttach = true;
            } else {
                $item->resetObject();
                $item->dBParameterGroupName = $dbParameterGroupName;
                $item->dBParameterGroupFamily = $this->exist($sxml->DBParameterGroupFamily) ? (string) $sxml->DBParameterGroupFamily : null;
                $item->description = $this->exist($sxml->Description) ? (string) $sxml->Description : null;
                $bAttach = false;
            }
            if ($bAttach && $this->rds->getEntityManagerEnabled()) {
                $this->getEntityManager()->attach($item);
            }
        }
        return $item;
    }
RdsApi