Diff #4 - trunk/docs/classes/models/emailattachment/count.md Repo: apex/webapp Revision: 4 Filename: trunk/docs/classes/models/emailattachment/count.md Size: 780 bytes Updated By: apex Date Updated: January 20, 2025 at 08:20 DiffFull Code Diff Index: count.md --- count.md (nonexistent) +++ count.md (revision 4) @@ -0,0 +1,39 @@ + +# BaseModel::count + +### Usage + +> int BaseModel::count([ string $where_sql = '' ], [ ... $args ]) + +### Description + +> Get the number of records within the database table with optional where clause. + +### Parameters + +Parameter | Required | Type | Description +------------- |------------- |------------- |------------- +where_sql | No | string | +args | No | ... | + +### Return +> int +### See Also + +* all() +* delete() +* deleteMany() +* getChildren() +* insert() +* insertFromForm() +* insertOrUpdate() +* purge() +* save() +* toArray() +* toFormattedArray() +* update() +* where() +* whereFirst() +* whereId() + + Full Code BaseModel::count Usage int BaseModel::count([ string $where_sql = '' ], [ ... $args ]) Description Get the number of records within the database table with optional where clause. Parameters Parameter Required Type Description where_sql No string args No ... Return int See Also all() delete() deleteMany() getChildren() insert() insertFromForm() insertOrUpdate() purge() save() toArray() toFormattedArray() update() where() whereFirst() whereId()