Backend\Core\Engine\Meta::loadMeta PHP Method

loadMeta() protected method

Load a specific meta-record
protected loadMeta ( integer $id )
$id integer The id of the record to load.
    protected function loadMeta($id)
    {
        $this->id = (int) $id;
        // get item
        $this->data = (array) BackendModel::getContainer()->get('database')->getRecord('SELECT *
             FROM meta AS m
             WHERE m.id = ?', array($this->id));
        // validate meta-record
        if (empty($this->data)) {
            throw new Exception('Meta-record doesn\'t exist.');
        }
        // unserialize data
        if (isset($this->data['data'])) {
            $this->data['data'] = @unserialize($this->data['data']);
        }
    }