1 | <?php |
||
33 | class DaoCommon { |
||
34 | |||
35 | /** |
||
36 | * @var \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend |
||
37 | */ |
||
38 | protected static $cache = NULL; |
||
39 | |||
40 | /** |
||
41 | * Gets a record by UID and table |
||
42 | * |
||
43 | * @param int $uid |
||
44 | * @param string $table |
||
45 | * @return array |
||
46 | */ |
||
47 | public static function getRecord($uid, $table) { |
||
56 | |||
57 | /** |
||
58 | * Gets a requested record |
||
59 | * |
||
60 | * @param int $uid |
||
61 | * @param string $table |
||
62 | * @return array |
||
63 | */ |
||
64 | protected static function getRequestedRecord($uid, $table) { |
||
75 | |||
76 | /** |
||
77 | * Gets records by table and where clause |
||
78 | * |
||
79 | * @param string $table |
||
80 | * @param string $where |
||
81 | * @return array |
||
82 | */ |
||
83 | public static function getRecords($table, $where) { |
||
92 | |||
93 | /** |
||
94 | * Gets requested records by table and where clause |
||
95 | * |
||
96 | * @param string $table |
||
97 | * @param string $where |
||
98 | * @return array |
||
99 | */ |
||
100 | protected static function getRequestedRecords($table, $where) { |
||
114 | |||
115 | /** |
||
116 | * Gets the cache |
||
117 | * |
||
118 | * @return \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend |
||
119 | */ |
||
120 | protected static function getCache() { |
||
128 | |||
129 | /** |
||
130 | * Gets a database connection |
||
131 | * |
||
132 | * @return \TYPO3\CMS\Core\Database\DatabaseConnection |
||
133 | */ |
||
134 | protected function getDatabase() { |
||
137 | } |
||
138 |