| 1 | <?php |
||
| 19 | class Vocabulary extends Model |
||
| 20 | { |
||
| 21 | // 0 = disabled, 1 = single, 2 = multiple |
||
| 22 | public static $HIERARCHY_FLAT = 0; |
||
| 23 | public static $HIERARCHY_SINGLE_PARENT = 1; |
||
| 24 | public static $HIERARCHY_MULTIPLE_PARENT = 2; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var bool Indicates if the model should be timestamped. |
||
| 28 | */ |
||
| 29 | public $timestamps = false; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string The table associated with the model. |
||
| 33 | */ |
||
| 34 | protected $table = 'taxonomy_vocabularies'; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var array The attributes that are mass assignable. |
||
| 38 | */ |
||
| 39 | protected $fillable = ['name', 'machine_name', 'description', 'hierarchy', 'translatable']; |
||
| 40 | |||
| 41 | 180 | /** |
|
| 42 | * Gives the information if a vocabulary is translatable or not |
||
| 43 | 180 | * |
|
| 44 | * @return bool |
||
| 45 | */ |
||
| 46 | public function isTranslatable() |
||
| 50 | } |
||
| 51 |