Backend\Modules\Tags\Engine\Model::get PHP Method

get() public static method

Get tag record.
public static get ( integer $id ) : array
$id integer The id of the record to get.
return array
    public static function get($id)
    {
        return (array) BackendModel::getContainer()->get('database')->getRecord('SELECT i.tag AS name
             FROM tags AS i
             WHERE i.id = ?', array((int) $id));
    }

Usage Example

Example #1
0
 /**
  * Get the data
  */
 private function getData()
 {
     $this->record = BackendTagsModel::get($this->id);
 }