| 1 | <?php |
||
| 8 | abstract class PlatformBaseModel |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var base |
||
| 12 | */ |
||
| 13 | protected $db; |
||
| 14 | |||
| 15 | private function __construct($db) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param base $db |
||
| 22 | * |
||
| 23 | * @return static |
||
| 24 | */ |
||
| 25 | public static function create(base $db = null) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return static |
||
| 36 | */ |
||
| 37 | public static function createRead() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return static |
||
| 44 | */ |
||
| 45 | public static function createPlatformOnlyWrite() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return static |
||
| 52 | */ |
||
| 53 | public static function createPlatformOnlyRead() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return static |
||
| 60 | */ |
||
| 61 | public static function createPlatformBookWrite() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return static |
||
| 68 | */ |
||
| 69 | public static function createPlatformBookRead() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @return static |
||
| 76 | */ |
||
| 77 | public static function createCpstatWrite() |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @return static |
||
| 84 | */ |
||
| 85 | public static function createCpstatRead() |
||
| 89 | |||
| 90 | public function transactional(callable $callable) |
||
| 94 | } |
||
| 95 |