| @@ 131-146 (lines=16) @@ | ||
| 128 | * |
|
| 129 | * @return string[][] |
|
| 130 | */ |
|
| 131 | public function loadAllSectionData() |
|
| 132 | { |
|
| 133 | $query = $this->dbHandler->createSelectQuery(); |
|
| 134 | $query->select( |
|
| 135 | $this->dbHandler->quoteColumn('id'), |
|
| 136 | $this->dbHandler->quoteColumn('identifier'), |
|
| 137 | $this->dbHandler->quoteColumn('name') |
|
| 138 | )->from( |
|
| 139 | $this->dbHandler->quoteTable('ezsection') |
|
| 140 | ); |
|
| 141 | ||
| 142 | $statement = $query->prepare(); |
|
| 143 | $statement->execute(); |
|
| 144 | ||
| 145 | return $statement->fetchAll(\PDO::FETCH_ASSOC); |
|
| 146 | } |
|
| 147 | ||
| 148 | /** |
|
| 149 | * Loads data for section with $identifier. |
|
| @@ 936-951 (lines=16) @@ | ||
| 933 | * @param mixed $contentId |
|
| 934 | * @param mixed $versionNo |
|
| 935 | */ |
|
| 936 | public function updateLocationsContentVersionNo($contentId, $versionNo) |
|
| 937 | { |
|
| 938 | $query = $this->handler->createUpdateQuery(); |
|
| 939 | $query->update( |
|
| 940 | $this->handler->quoteTable('ezcontentobject_tree') |
|
| 941 | )->set( |
|
| 942 | $this->handler->quoteColumn('contentobject_version'), |
|
| 943 | $query->bindValue($versionNo, null, \PDO::PARAM_INT) |
|
| 944 | )->where( |
|
| 945 | $query->expr->eq( |
|
| 946 | $this->handler->quoteColumn('contentobject_id'), |
|
| 947 | $contentId |
|
| 948 | ) |
|
| 949 | ); |
|
| 950 | $query->prepare()->execute(); |
|
| 951 | } |
|
| 952 | ||
| 953 | /** |
|
| 954 | * Searches for the main nodeId of $contentId in $versionId. |
|