library/Services/ShopObjectConstructor/Constructor/ObjectConstructor.php
public function load($objectId)
    {
        if (!empty($objectId)) {
            $blResult = is_array($objectId)? $this->_loadByArray($objectId) : $this->_loadById($objectId);
            if ($blResult === false) {
                $sClass = get_class($this->getObject());
                throw new Exception("Failed to load $sClass with id $objectId");
            }
        }
    }
public function load($objectId)
    {
        if (!empty($objectId)) {
            $blResult = is_array($objectId)? $this->_loadByArray($objectId) : $this->_loadById($objectId);
            if ($blResult === false) {
                $sClass = get_class($this->getObject());
                throw new Exception("Failed to load $sClass with id $objectId");
            }
        }
    }
public function load ( $ objectId ) { if ( ! empty ( $ objectId ) ) { $ blResult = is_array ( $ objectId ) ? $ this -> _loadByArray ( $ objectId ) : $ this -> _loadById ( $ objectId ) ; if ( $ blResult === false ) { $ sClass = get_class ( $ this -> getObject ( ) ) ; throw new Exception ( "Failed to load $sClass with id $objectId" ) ; } } }
Loads object by given id

@param mixed $objectId

@throws Exception
Loads object by given id