| @@ 130-145 (lines=16) @@ | ||
| 127 | * |
|
| 128 | * @return string[][] |
|
| 129 | */ |
|
| 130 | public function loadAllSectionData() |
|
| 131 | { |
|
| 132 | $query = $this->dbHandler->createSelectQuery(); |
|
| 133 | $query->select( |
|
| 134 | $this->dbHandler->quoteColumn('id'), |
|
| 135 | $this->dbHandler->quoteColumn('identifier'), |
|
| 136 | $this->dbHandler->quoteColumn('name') |
|
| 137 | )->from( |
|
| 138 | $this->dbHandler->quoteTable('ezsection') |
|
| 139 | ); |
|
| 140 | ||
| 141 | $statement = $query->prepare(); |
|
| 142 | $statement->execute(); |
|
| 143 | ||
| 144 | return $statement->fetchAll(\PDO::FETCH_ASSOC); |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * Loads data for section with $identifier. |
|
| @@ 394-409 (lines=16) @@ | ||
| 391 | * |
|
| 392 | * @param string $hash |
|
| 393 | */ |
|
| 394 | public function expireUserToken($hash) |
|
| 395 | { |
|
| 396 | $query = $this->handler->createUpdateQuery(); |
|
| 397 | $query |
|
| 398 | ->update($this->handler->quoteTable('ezuser_accountkey')) |
|
| 399 | ->set( |
|
| 400 | $this->handler->quoteColumn('time'), |
|
| 401 | $query->bindValue(0) |
|
| 402 | )->where( |
|
| 403 | $query->expr->eq( |
|
| 404 | $this->handler->quoteColumn('hash_key'), |
|
| 405 | $query->bindValue($hash, null, \PDO::PARAM_STR) |
|
| 406 | ) |
|
| 407 | ); |
|
| 408 | $query->prepare()->execute(); |
|
| 409 | } |
|
| 410 | ||
| 411 | /** |
|
| 412 | * Assigns role to user with given limitation. |
|
| @@ 938-953 (lines=16) @@ | ||
| 935 | * @param mixed $contentId |
|
| 936 | * @param mixed $versionNo |
|
| 937 | */ |
|
| 938 | public function updateLocationsContentVersionNo($contentId, $versionNo) |
|
| 939 | { |
|
| 940 | $query = $this->handler->createUpdateQuery(); |
|
| 941 | $query->update( |
|
| 942 | $this->handler->quoteTable('ezcontentobject_tree') |
|
| 943 | )->set( |
|
| 944 | $this->handler->quoteColumn('contentobject_version'), |
|
| 945 | $query->bindValue($versionNo, null, \PDO::PARAM_INT) |
|
| 946 | )->where( |
|
| 947 | $query->expr->eq( |
|
| 948 | $this->handler->quoteColumn('contentobject_id'), |
|
| 949 | $contentId |
|
| 950 | ) |
|
| 951 | ); |
|
| 952 | $query->prepare()->execute(); |
|
| 953 | } |
|
| 954 | ||
| 955 | /** |
|
| 956 | * Searches for the main nodeId of $contentId in $versionId. |
|