This is an old revision of the document!
Table of Contents
BaseModel
Layer: Core · Source: lib/core/BaseModel.php:21 (lines 21–106)
class BaseModel extends Dao
BaseModel Class
Base Model class providing common functionality for all model classes Extends Dao to inherit database operations
Docblock Metadata
^ Tag ^ Value ^ | ''@category'' | Core Class | | ''@author'' | M.Noermoehammad | | ''@license'' | MIT | | ''@version'' | 1.0 | | ''@since'' | Since Release 1.0 |
Inheritance
^ Relation ^ Type ^ Meaning ^ | extends | [[scriptlog:lib:core:dao|''Dao'']] | parent class/interface |
Constants (0)
None.
Properties (0)
None declared.
Methods (7)
^ Visibility ^ Method ^ Summary ^ Line ^ | public | ''__construct()'' | Constructor | 42 | | protected | ''getDbConnection()'' | Get the database connection | 52 | | protected | ''getSql()'' | Get current SQL query | 62 | | protected | ''setLink()'' | Set pagination link | 72 | | protected | ''getLink()'' | Get pagination link | 82 | | protected | ''setPagination()'' | Set pagination | 92 | | protected | ''getPagination()'' | Get pagination | 102 |
__construct()
public function __construct()
lines 42–45 (4)
Constructor
Initialize BaseModel and parent Dao
Takes no parameters.
getDbConnection()
protected function getDbConnection()
lines 52–55 (4)
Get the database connection
Takes no parameters.
Returns: (none declared) — object
getSql()
protected function getSql()
lines 62–65 (4)
Get current SQL query
Takes no parameters.
Returns: (none declared) — string
setLink()
protected function setLink($link)
lines 72–75 (4)
Set pagination link
^ Parameter ^ Type ^ Default ^ Description ^ | ''$link'' | ''(untyped)'' | //required// | //none// |
Returns: (none declared)
getLink()
protected function getLink()
lines 82–85 (4)
Get pagination link
Takes no parameters.
Returns: (none declared) — object
setPagination()
protected function setPagination($pagination)
lines 92–95 (4)
Set pagination
^ Parameter ^ Type ^ Default ^ Description ^ | ''$pagination'' | ''(untyped)'' | //required// | //none// |
Returns: (none declared)
getPagination()
protected function getPagination()
lines 102–105 (4)
Get pagination
Takes no parameters.
Returns: (none declared) — string
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.
