You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPDoc, a new test, and cryptographically save session handle maker
Methods that return Models from ActiveRecord and VersionedRecord will now return static[] and static which is more accurate PHPDoc notation.
Session method generateUniqueHandle is now cryptographically secure with 2^128 possible handles.
Added binary type support to SQL class.
Added a test for Session generateUniqueHandle
* @param string $className If you leave this blank the return will be $this
542
542
* @param array $fieldValues Optional. Any field values you want to override.
543
-
* @return ActiveRecord A new model of a different class with this model's field's. Useful when you have similar classes or subclasses with the same parent.
543
+
* @return static A new model of a different class with this model's field's. Useful when you have similar classes or subclasses with the same parent.
@@ -896,7 +896,7 @@ public static function getRecordByField($field, $value, $cacheIndex = false)
896
896
*
897
897
* @param array|string $conditions If passed as a string a database Where clause. If an array of field/value pairs will convert to a series of `field`='value' conditions joined with an AND operator.
898
898
* @param array|string $options Only takes 'order' option. A raw database string that will be inserted into the OR clause of the query or an array of field/direction pairs.
899
-
* @return ActiveRecord|null Single model instantiated from the first database result
899
+
* @return static|null Single model instantiated from the first database result
@@ -944,7 +944,7 @@ public static function getRecordByWhere($conditions, $options = [])
944
944
*
945
945
* @param string $query Database query. The passed in string will be passed through vsprintf or sprintf with $params.
946
946
* @param array|string $params If an array will be passed through vsprintf as the second parameter with the query as the first. If a string will be used with sprintf instead. If nothing provided you must provide your own query.
947
-
* @return ActiveRecord|null Single model instantiated from the first database result
947
+
* @return static|null Single model instantiated from the first database result
@@ -1010,7 +1010,7 @@ public static function getAllByField($field, $value, $options = [])
1010
1010
*
1011
1011
* @param array|string $conditions If passed as a string a database Where clause. If an array of field/value pairs will convert to a series of `field`='value' conditions joined with an AND operator.
1012
1012
* @param array|string $options
1013
-
* @return ActiveRecord[]|null Array of models instantiated from the database result.
1013
+
* @return static[]|null Array of models instantiated from the database result.
@@ -1113,7 +1113,7 @@ public static function getAllRecordsByWhere($conditions = [], $options = [])
1113
1113
* Attempts to get all database records for this class and return them as an array of instantiated models.
1114
1114
*
1115
1115
* @param array $options
1116
-
* @return ActiveRecord[]|null
1116
+
* @return static[]|null
1117
1117
*/
1118
1118
publicstaticfunctiongetAll($options = [])
1119
1119
{
@@ -1161,7 +1161,7 @@ public static function getAllRecords($options = [])
1161
1161
*
1162
1162
* @param string $query Database query. The passed in string will be passed through vsprintf or sprintf with $params.
1163
1163
* @param array|string $params If an array will be passed through vsprintf as the second parameter with the query as the first. If a string will be used with sprintf instead. If nothing provided you must provide your own query.
1164
-
* @return ActiveRecord[]|null Array of models instantiated from the first database result
1164
+
* @return static[]|null Array of models instantiated from the first database result
@@ -1178,7 +1178,7 @@ public static function getTableByQuery($keyField, $query, $params = [])
1178
1178
* Converts database record array to a model. Will attempt to use the record's Class field value to as the class to instantiate as or the name of this class if none is provided.
1179
1179
*
1180
1180
* @param array $record Database row as an array.
1181
-
* @return ActiveRecord|null An instantiated ActiveRecord model from the provided data.
1181
+
* @return static|null An instantiated ActiveRecord model from the provided data.
1182
1182
*/
1183
1183
publicstaticfunctioninstantiateRecord($record)
1184
1184
{
@@ -1190,7 +1190,7 @@ public static function instantiateRecord($record)
1190
1190
* Converts an array of database records to a model corresponding to each record. Will attempt to use the record's Class field value to as the class to instantiate as or the name of this class if none is provided.
1191
1191
*
1192
1192
* @param array $record An array of database rows.
1193
-
* @return ActiveRecord|null An array of instantiated ActiveRecord models from the provided data.
1193
+
* @return static|null An array of instantiated ActiveRecord models from the provided data.
0 commit comments