src/Charcoal/Model/Service/ModelLoader.php
private function loadFromSource($ident)
    {
        $obj = $this->factory->create($this->objType);
        if ($this->objKey) {
            $obj->loadFrom($this->objKey, $ident);
        } else {
            $obj->load($ident);
        }

        return $obj;
    }
private function loadFromSource($ident)
    {
        $obj = $this->factory->create($this->objType);
        if ($this->objKey) {
            $obj->loadFrom($this->objKey, $ident);
        } else {
            $obj->load($ident);
        }

        return $obj;
    }
private function loadFromSource ( $ ident ) { $ obj = $ this -> factory -> create ( $ this -> objType ) ; if ( $ this -> objKey ) { $ obj -> loadFrom ( $ this -> objKey , $ ident ) ; } else { $ obj -> load ( $ ident ) ; } return $ obj ; }
Load an objet from its soure.

@param  string|integer $ident The object identifier to load.
@return ModelInterface
Load an objet from its soure .