Change name Webmodel to WebModel

This commit is contained in:
Antonio de la Rosa 2025-11-20 14:15:05 +01:00
parent a7267ffc30
commit 0164401e7e
22 changed files with 195 additions and 195 deletions

View file

@ -10,9 +10,9 @@
*/
/**
* Extra Method for Webmodel. Is used for check if element with $idrow id exists in the database.
* Extra Method for WebModel. Is used for check if element with $idrow id exists in the database.
*
* @param Webmodel $class Webmodel instance class.
* @param WebModel $class WebModel instance class.
* @param mixed $idrow The id of the element to search.
* @param string $field_search The field where search the specified "id" if you want use other field distinct to default id field.
*

View file

@ -14,7 +14,7 @@
*
* This method is useful if you only want load a field of a model.
*
* @param Webmodel $class The model used for search in
* @param WebModel $class The model used for search in
* @param string $where A where sql statement.
* @param string $field The field where search.
*/

View file

@ -10,11 +10,11 @@
*/
/**
* A useful method for Webmodel for load a row from a db model (table)
* A useful method for WebModel for load a row from a db model (table)
*
* With this method you can load only a row specifyng the model id value.
*
* @param Webmodel $class The instance of the class used
* @param WebModel $class The instance of the class used
* @param integer $idrow The id value of the row.
* @param array $arr_select An array where the values are the correspondent fields of the model
* @param boolean $raw_query If true, ForeignKeys will be ignored, if false, the return value will load the relationships specified.

View file

@ -10,11 +10,11 @@
*/
/**
* A useful method for Webmodel for load a row from a db model (table) using a where sql statement
* A useful method for WebModel for load a row from a db model (table) using a where sql statement
*
* With this method you can load only a row specifyng the model id value using a where sql statement.
*
* @param Webmodel $class The instance of the class used
* @param WebModel $class The instance of the class used
* @param string $where A where sql statement.
* @param array $arr_select An array where the values are the correspondent fields of the model
* @param boolean $raw_query If true, ForeignKeys will be ignored, if false, the return value will load the relationships specified.

View file

@ -10,11 +10,11 @@
*/
/**
* A useful method for Webmodel for load an array of rows resulted from a query.
* A useful method for WebModel for load an array of rows resulted from a query.
*
* With this method you can load only a row specifyng the model id value using a where sql statement.
*
* @param Webmodel $class The instance of the class used
* @param WebModel $class The instance of the class used
* @param string $where A where sql statement.
* @param array $arr_select An array where the values are the correspondent fields of the model
* @param boolean $raw_query If true, ForeignKeys will be ignored, if false, the return value will load the relationships specified.

View file

@ -10,11 +10,11 @@
*/
/**
* A useful method for Webmodel for load an array of rows resulted from a query.
* A useful method for WebModel for load an array of rows resulted from a query.
*
* With this method you can load only a row specifyng the model id value using a where sql statement.
*
* @param Webmodel $class The instance of the class used
* @param WebModel $class The instance of the class used
* @param string $where A where sql statement.
* @param array $arr_select An array where the values are the correspondent fields of the model
* @param boolean $raw_query If true, ForeignKeys will be ignored, if false, the return value will load the relationships specified.

View file

@ -11,7 +11,7 @@
/**
* A simple extension for create where strings with checking.
*
* With this extension, you can create sql strings for use on where parameter of select method from Webmodel.
* With this extension, you can create sql strings for use on where parameter of select method from WebModel.
*
* Example ['AND']->array( 'field' => array('!=', 25), 'field2' => array('=', 'value_field'), 'field3' => array('LIKE', 'value_field'), 'field4' => array('IN', array('1','2','3'), 'limit_sql' => array('LIMIT', array(1, 10), 'order_by' => array('order_fieldY', 'ASC'
))