src/Charcoal/Admin/Ui/ObjectContainerTrait.php
protected function createOrLoadObj()
    {
        if ($this->objId()) {
            return $this->loadObj();
        } elseif (!empty($_GET['clone_id'])) {
            return $this->cloneObj();
        } elseif (!empty($_GET['blueprint_id'])) {
            return $this->createObjFromBluePrint();
        } else {
            return $this->createObj();
        }
    }
protected function createOrLoadObj()
    {
        if ($this->objId()) {
            return $this->loadObj();
        } elseif (!empty($_GET['clone_id'])) {
            return $this->cloneObj();
        } elseif (!empty($_GET['blueprint_id'])) {
            return $this->createObjFromBluePrint();
        } else {
            return $this->createObj();
        }
    }
protected function createOrLoadObj ( ) { if ( $ this -> objId ( ) ) { return $ this -> loadObj ( ) ; } elseif ( ! empty ( $ _GET [ 'clone_id' ] ) ) { return $ this -> cloneObj ( ) ; } elseif ( ! empty ( $ _GET [ 'blueprint_id' ] ) ) { return $ this -> createObjFromBluePrint ( ) ; } else { return $ this -> createObj ( ) ; } }
Create or load the object.

@return ModelInterface
Create or load the object .