Base model class
This is the code documentation for the SproutCMS project
Search documentation |
class ModelBase model class
Extending this class<?php
/**
* New class description goes here
*
* @author Your Name, 2026-09-16
**/
class NewClassName extends Model {
public function getConnection () {
// Method code goes here
}
public function save ($validate) {
// Method code goes here
}
public function rules () {
// Method code goes here
}
/**
* Generate an appropriate UUID.
*
* Beware - new records are created with a UUIDv4 while the save() method
* generates a UUIDv5. Theoretically this shouldn't be externally apparent
* due to the wrapping transaction.
**/
protected function getUid () {
// Method code goes here
}
}
?>
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|