@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | * @param array $driver_options |
| 302 | 302 | * This array holds one or more key=>value pairs to set attribute values |
| 303 | 303 | * for the DatabaseStatement object that this method returns. |
| 304 | - * @return DatabaseStatement |
|
| 304 | + * @return PDOStatement |
|
| 305 | 305 | */ |
| 306 | 306 | public function prepare($query, array $driver_options = array()) |
| 307 | 307 | { |
@@ -577,11 +577,6 @@ discard block |
||
| 577 | 577 | * @param string $query |
| 578 | 578 | * The full SQL query to execute. Defaults to null, which will |
| 579 | 579 | * use the `$this->_lastResult` |
| 580 | - * @param array $params |
|
| 581 | - * An array containing parameters to be used in the query. The query has to be |
|
| 582 | - * sprintf-formatted. All values will be sanitized before being used in the query. |
|
| 583 | - * For sake of backwards-compatibility, the query will only be sprintf-processed |
|
| 584 | - * if $params is not empty. |
|
| 585 | 580 | * @return string |
| 586 | 581 | * Returns the value of the given column, if it doesn't exist, null will be |
| 587 | 582 | * returned |
@@ -641,9 +636,6 @@ discard block |
||
| 641 | 636 | * |
| 642 | 637 | * @uses QueryExecutionError |
| 643 | 638 | * @throws DatabaseException |
| 644 | - * @param string $type |
|
| 645 | - * Accepts one parameter, 'connect', which will return the correct |
|
| 646 | - * error codes when the connection sequence fails |
|
| 647 | 639 | */ |
| 648 | 640 | private function __error() |
| 649 | 641 | { |
@@ -695,7 +687,7 @@ discard block |
||
| 695 | 687 | * If set to true, this will set MySQL's default storage engine to MyISAM. |
| 696 | 688 | * Defaults to false, which will use MySQL's default storage engine when |
| 697 | 689 | * tables don't explicitly define which engine they should be created with |
| 698 | - * @return boolean |
|
| 690 | + * @return boolean|null |
|
| 699 | 691 | * If one of the queries fails, false will be returned and no further queries |
| 700 | 692 | * will be executed, otherwise true will be returned. |
| 701 | 693 | */ |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * |
| 44 | 44 | * @param string $handle |
| 45 | 45 | * The handle of the page |
| 46 | - * @return integer |
|
| 46 | + * @return string |
|
| 47 | 47 | * The Page title |
| 48 | 48 | */ |
| 49 | 49 | public static function fetchTitleFromHandle($handle) |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @param string $handle |
| 64 | 64 | * The handle of the page |
| 65 | - * @return integer |
|
| 65 | + * @return string |
|
| 66 | 66 | * The Page ID |
| 67 | 67 | */ |
| 68 | 68 | public static function fetchIDFromHandle($handle) |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * |
| 117 | 117 | * @param string $name |
| 118 | 118 | * Name of the template |
| 119 | - * @return mixed |
|
| 119 | + * @return string|false |
|
| 120 | 120 | * String, which is the path to the template if the template is found, |
| 121 | 121 | * false otherwise |
| 122 | 122 | */ |
@@ -512,10 +512,10 @@ discard block |
||
| 512 | 512 | * |
| 513 | 513 | * @param integer|array $page_id |
| 514 | 514 | * The ID of the Page, or an array of ID's |
| 515 | - * @param array $select (optional) |
|
| 515 | + * @param string[] $select (optional) |
|
| 516 | 516 | * Accepts an array of columns to return from `tbl_pages`. If omitted, |
| 517 | 517 | * all columns from the table will be returned. |
| 518 | - * @return array|null |
|
| 518 | + * @return integer|null |
|
| 519 | 519 | * An associative array of Page information with the key being the column |
| 520 | 520 | * name from `tbl_pages` and the value being the data. If multiple Pages |
| 521 | 521 | * are found, an array of Pages will be returned. If no Pages are found |
@@ -184,7 +184,7 @@ |
||
| 184 | 184 | * |
| 185 | 185 | * @param string $handle |
| 186 | 186 | * The handle of the section |
| 187 | - * @return integer |
|
| 187 | + * @return string |
|
| 188 | 188 | * The Section ID |
| 189 | 189 | */ |
| 190 | 190 | public static function fetchIDFromHandle($handle) |
@@ -71,6 +71,9 @@ discard block |
||
| 71 | 71 | Utilities: |
| 72 | 72 | -------------------------------------------------------------------------*/ |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @param string $data |
|
| 76 | + */ |
|
| 74 | 77 | private function __applyValidationRules($data) |
| 75 | 78 | { |
| 76 | 79 | $rule = $this->get('validator'); |
@@ -78,6 +81,9 @@ discard block |
||
| 78 | 81 | return ($rule ? General::validateString($data, $rule) : true); |
| 79 | 82 | } |
| 80 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $value |
|
| 86 | + */ |
|
| 81 | 87 | private function __replaceAmpersands($value) |
| 82 | 88 | { |
| 83 | 89 | return preg_replace('/&(?!(#[0-9]+|#x[0-9a-f]+|amp|lt|gt);)/i', '&', trim($value)); |
@@ -171,6 +177,9 @@ discard block |
||
| 171 | 177 | return self::__OK__; |
| 172 | 178 | } |
| 173 | 179 | |
| 180 | + /** |
|
| 181 | + * @param integer $entry_id |
|
| 182 | + */ |
|
| 174 | 183 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 175 | 184 | { |
| 176 | 185 | $status = self::__OK__; |