src/services/Model.php 1 location
|
@@ 570-585 (lines=16) @@
|
| 567 |
|
* @param $identifier |
| 568 |
|
* @return BaseModel|null |
| 569 |
|
*/ |
| 570 |
|
public function findCache($identifier) |
| 571 |
|
{ |
| 572 |
|
|
| 573 |
|
if ($identifier instanceof Record) { |
| 574 |
|
|
| 575 |
|
return $this->findCacheByRecord($identifier); |
| 576 |
|
|
| 577 |
|
} elseif (is_numeric($identifier)) { |
| 578 |
|
|
| 579 |
|
return $this->findCacheById($identifier); |
| 580 |
|
|
| 581 |
|
} |
| 582 |
|
|
| 583 |
|
return null; |
| 584 |
|
|
| 585 |
|
} |
| 586 |
|
|
| 587 |
|
/** |
| 588 |
|
* Find an existing cache by ID |
src/services/Object.php 1 location
|
@@ 567-582 (lines=16) @@
|
| 564 |
|
* @param $identifier |
| 565 |
|
* @return BaseObject|null |
| 566 |
|
*/ |
| 567 |
|
public function findCache($identifier) |
| 568 |
|
{ |
| 569 |
|
|
| 570 |
|
if ($identifier instanceof Record) { |
| 571 |
|
|
| 572 |
|
return $this->findCacheByRecord($identifier); |
| 573 |
|
|
| 574 |
|
} elseif (is_numeric($identifier)) { |
| 575 |
|
|
| 576 |
|
return $this->findCacheById($identifier); |
| 577 |
|
|
| 578 |
|
} |
| 579 |
|
|
| 580 |
|
return null; |
| 581 |
|
|
| 582 |
|
} |
| 583 |
|
|
| 584 |
|
/** |
| 585 |
|
* Find an existing cache by ID |