@@ -26,6 +26,7 @@ discard block |
||
| 26 | 26 | * Get a variable from the session |
| 27 | 27 | * |
| 28 | 28 | * @SuppressWarnings(PHPMD.Superglobals) |
| 29 | + * @param string $name |
|
| 29 | 30 | */ |
| 30 | 31 | static function getVar($name, $default = false) |
| 31 | 32 | { |
@@ -43,6 +44,7 @@ discard block |
||
| 43 | 44 | * Set a variable in the session |
| 44 | 45 | * |
| 45 | 46 | * @SuppressWarnings(PHPMD.Superglobals) |
| 47 | + * @param string $name |
|
| 46 | 48 | */ |
| 47 | 49 | static function setVar($name, $value) |
| 48 | 50 | { |
@@ -146,6 +148,9 @@ discard block |
||
| 146 | 148 | } |
| 147 | 149 | } |
| 148 | 150 | |
| 151 | + /** |
|
| 152 | + * @param string $sessionData |
|
| 153 | + */ |
|
| 149 | 154 | static function unserializePhpSession($sessionData) |
| 150 | 155 | { |
| 151 | 156 | $res = array(); |
@@ -69,6 +69,9 @@ |
||
| 69 | 69 | return $data[0]['hint']; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + /** |
|
| 73 | + * @return string |
|
| 74 | + */ |
|
| 72 | 75 | private function get_answer() |
| 73 | 76 | { |
| 74 | 77 | $dataset = DataSetFactory::get_data_set('profiles'); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | /** |
| 38 | 38 | * Serialize the object into a format consumable by json_encode |
| 39 | 39 | * |
| 40 | - * @return mixed The object in a more serialized format |
|
| 40 | + * @return SerializableObject The object in a more serialized format |
|
| 41 | 41 | */ |
| 42 | 42 | public function jsonSerialize() |
| 43 | 43 | { |
@@ -12,11 +12,17 @@ |
||
| 12 | 12 | if($string !== false) $this->process_filter_string($string); |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param string $needle |
|
| 17 | + */ |
|
| 15 | 18 | static function str_startswith($haystack, $needle) |
| 16 | 19 | { |
| 17 | 20 | return substr($haystack, 0, strlen($needle)) === $needle; |
| 18 | 21 | } |
| 19 | 22 | |
| 23 | + /** |
|
| 24 | + * @param boolean $string |
|
| 25 | + */ |
|
| 20 | 26 | protected function process_filter_string($string) |
| 21 | 27 | { |
| 22 | 28 | if(self::str_startswith($string, 'substringof') || self::str_startswith($string, 'contains') || |
@@ -17,6 +17,9 @@ |
||
| 17 | 17 | } |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param string $sql |
|
| 22 | + */ |
|
| 20 | 23 | function _get_row_count_for_query($sql) |
| 21 | 24 | { |
| 22 | 25 | $stmt = $this->pdo->query($sql); |
@@ -6,6 +6,9 @@ |
||
| 6 | 6 | protected $dataset; |
| 7 | 7 | protected $tablename; |
| 8 | 8 | |
| 9 | + /** |
|
| 10 | + * @param SQLDataSet $dataset |
|
| 11 | + */ |
|
| 9 | 12 | function __construct($dataset, $tablename) |
| 10 | 13 | { |
| 11 | 14 | $this->dataset = $dataset; |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * Who is this email going to |
| 74 | 74 | * |
| 75 | - * @return array The recipients of the email |
|
| 75 | + * @return string The recipients of the email |
|
| 76 | 76 | */ |
| 77 | 77 | public function getToAddresses() |
| 78 | 78 | { |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | /** |
| 83 | 83 | * Who is this email going to (CC) |
| 84 | 84 | * |
| 85 | - * @return array The recipients of the email |
|
| 85 | + * @return string The recipients of the email |
|
| 86 | 86 | */ |
| 87 | 87 | public function getCCAddresses() |
| 88 | 88 | { |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | /** |
| 93 | 93 | * Who is this email going to (BCC) |
| 94 | 94 | * |
| 95 | - * @return array The recipients of the email |
|
| 95 | + * @return string The recipients of the email |
|
| 96 | 96 | */ |
| 97 | 97 | public function getBCCAddresses() |
| 98 | 98 | { |
@@ -12,6 +12,9 @@ |
||
| 12 | 12 | return false; |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param Email $email |
|
| 17 | + */ |
|
| 15 | 18 | public function sendEmail($email) |
| 16 | 19 | { |
| 17 | 20 | return false; |
@@ -117,6 +117,9 @@ discard block |
||
| 117 | 117 | $this->connect = false; |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | + /** |
|
| 121 | + * @param string $password |
|
| 122 | + */ |
|
| 120 | 123 | function bind($cn=null, $password=null) |
| 121 | 124 | { |
| 122 | 125 | $res = false; |
@@ -199,6 +202,9 @@ discard block |
||
| 199 | 202 | return $ret; |
| 200 | 203 | } |
| 201 | 204 | |
| 205 | + /** |
|
| 206 | + * @param boolean $filter |
|
| 207 | + */ |
|
| 202 | 208 | private function filterToString($filter) |
| 203 | 209 | { |
| 204 | 210 | if($filter === false) |