mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
funcionando la vista papel generico. investiganto ruta del boton añadir. falta poder quitar botones primera col
This commit is contained in:
26
ci4/app/Entities/GoBaseEntity.php
Normal file
26
ci4/app/Entities/GoBaseEntity.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entities;
|
||||
|
||||
/**
|
||||
* Base Entity Class for providing common methods to all child entities
|
||||
*
|
||||
* @author Gökhan Ozar
|
||||
*/
|
||||
abstract class GoBaseEntity extends \CodeIgniter\Entity\Entity
|
||||
{
|
||||
/**
|
||||
* Merges the current object's property values with the passed in arguments in array format
|
||||
*
|
||||
* @param array $args - an associative array of properties to be set
|
||||
* @return $this - returns the current object instance
|
||||
*/
|
||||
public function mergeAttributes(array $args = []) {
|
||||
foreach ($args as $key => $value) {
|
||||
if (isset($this->attributes[$key])) {
|
||||
$this->attributes[$key] = $value;
|
||||
}
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user