| 1 | <?php |
||
| 16 | class Extension extends Model |
||
| 17 | { |
||
| 18 | use HasParameters; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $fillable = ['name', 'type', 'enabled', 'parameters']; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Get a widget by name. |
||
| 27 | * |
||
| 28 | * @param string $name |
||
| 29 | * @return $this |
||
| 30 | */ |
||
| 31 | public static function widget($name) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get manifest attribute. |
||
| 42 | * |
||
| 43 | * @return object |
||
| 44 | */ |
||
| 45 | public function getManifestAttribute() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Get version. |
||
| 52 | * |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getVersionAttribute() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Get description. |
||
| 62 | * |
||
| 63 | * @return string |
||
| 64 | */ |
||
| 65 | public function getDescriptionAttribute() |
||
| 69 | } |
||
| 70 |