Apps/ActiveRecord/ContentCategory.php 1 location
|
@@ 30-40 (lines=11) @@
|
| 27 |
|
* @param array $columns |
| 28 |
|
* @return \Illuminate\Database\Eloquent\Collection|mixed|static[] |
| 29 |
|
*/ |
| 30 |
|
public static function all($columns = ['*']) |
| 31 |
|
{ |
| 32 |
|
$cacheName = 'activerecord.contentcategory.all.' . implode('.', $columns); |
| 33 |
|
$records = MemoryObject::instance()->get($cacheName); |
| 34 |
|
if ($records === null) { |
| 35 |
|
$records = parent::all($columns); |
| 36 |
|
MemoryObject::instance()->set($cacheName, $records); |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
return $records; |
| 40 |
|
} |
| 41 |
|
/** |
| 42 |
|
* Get record via category path address |
| 43 |
|
* @param string $path |
Apps/ActiveRecord/ProfileField.php 1 location
|
@@ 29-39 (lines=11) @@
|
| 26 |
|
* @param array $columns |
| 27 |
|
* @return \Illuminate\Database\Eloquent\Collection|mixed|static[] |
| 28 |
|
*/ |
| 29 |
|
public static function all($columns = ['*']) |
| 30 |
|
{ |
| 31 |
|
$cacheName = 'activerecord.profilefield.all.' . implode('.', $columns); |
| 32 |
|
$records = MemoryObject::instance()->get($cacheName); |
| 33 |
|
if ($records === null) { |
| 34 |
|
$records = parent::all($columns); |
| 35 |
|
MemoryObject::instance()->set($cacheName, $records); |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
return $records; |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
/** |
| 42 |
|
* @deprecated |
Apps/ActiveRecord/Role.php 1 location
|
@@ 27-37 (lines=11) @@
|
| 24 |
|
* @param array $columns |
| 25 |
|
* @return \Illuminate\Database\Eloquent\Collection|mixed|static[] |
| 26 |
|
*/ |
| 27 |
|
public static function all($columns = ['*']) |
| 28 |
|
{ |
| 29 |
|
$cacheName = 'activerecords.role.all.' . implode('.', $columns); |
| 30 |
|
$records = MemoryObject::instance()->get($cacheName); |
| 31 |
|
if ($records === null) { |
| 32 |
|
$records = parent::all($columns); |
| 33 |
|
MemoryObject::instance()->set($cacheName, $records); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
return $records; |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
/** |
| 40 |
|
* Get role object via id |