| 1 | <?php namespace Arcanedev\Support\Bases; | ||
| 11 | abstract class Model extends Eloquent | ||
| 12 | { | ||
| 13 | /* ------------------------------------------------------------------------------------------------ | ||
| 14 | | Properties | ||
| 15 | | ------------------------------------------------------------------------------------------------ | ||
| 16 | */ | ||
| 17 | /** | ||
| 18 | * The table prefix. | ||
| 19 | * | ||
| 20 | * @var string|null | ||
| 21 | */ | ||
| 22 | protected $prefix; | ||
| 23 | |||
| 24 | /* ------------------------------------------------------------------------------------------------ | ||
| 25 | | Getters & Setters | ||
| 26 | | ------------------------------------------------------------------------------------------------ | ||
| 27 | */ | ||
| 28 | /** | ||
| 29 | * Get the table associated with the model. | ||
| 30 | * | ||
| 31 | * @return string | ||
| 32 | */ | ||
| 33 | public function getTable() | ||
| 37 | |||
| 38 | /** | ||
| 39 | * Get the prefix table associated with the model. | ||
| 40 | * | ||
| 41 | * @return null|string | ||
| 42 | */ | ||
| 43 | public function getPrefix() | ||
| 47 | |||
| 48 | /** | ||
| 49 | * Set the prefix table associated with the model. | ||
| 50 | * | ||
| 51 | * @param string $prefix | ||
| 52 | * | ||
| 53 | * @return self | ||
| 54 | */ | ||
| 55 | public function setPrefix($prefix) | ||
| 61 | |||
| 62 | /* ------------------------------------------------------------------------------------------------ | ||
| 63 | | Check Functions | ||
| 64 | | ------------------------------------------------------------------------------------------------ | ||
| 65 | */ | ||
| 66 | /** | ||
| 67 | * Check if table is prefixed. | ||
| 68 | * | ||
| 69 | * @return bool | ||
| 70 | */ | ||
| 71 | public function isPrefixed() | ||
| 75 | } | ||
| 76 |