get() public static method

Get an item.
public static get ( string $id ) : array
$id string The id of the item to fetch.
return array
Example #1
0
 /**
  * Load the data.
  */
 private function loadData()
 {
     // fetch the item
     $this->item = FrontendFormBuilderModel::get((int) $this->data['id']);
     // define form name
     $this->formName = 'form' . $this->item['id'];
 }
Example #2
0
 /**
  * Load the data.
  */
 private function loadData()
 {
     // fetch the item
     $this->item = FrontendFormBuilderModel::get((int) $this->data['id']);
 }