Minor fixes to statement, services and internal things
Many misc updates
This commit is contained in:
@@ -63,6 +63,7 @@ abstract class ORMOSB extends ORM {
|
||||
* @param array Validate object
|
||||
* @param string Primary Key
|
||||
*/
|
||||
// @todo Do we need the $array?
|
||||
public static function get_next_id(Validation $array,$model,$field) {
|
||||
if (! is_null($model->$field))
|
||||
return TRUE;
|
||||
@@ -81,6 +82,7 @@ abstract class ORMOSB extends ORM {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// @todo Do we need the $array?
|
||||
public static function set_site_id(Validation $array,$model,$field) {
|
||||
if (! is_null($model->$field))
|
||||
return TRUE;
|
||||
@@ -91,6 +93,17 @@ abstract class ORMOSB extends ORM {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
public static function serialize_array(ORM $model,$field,$value) {
|
||||
if (is_null($value))
|
||||
return TRUE;
|
||||
|
||||
if (! is_array($value))
|
||||
return FALSE;
|
||||
|
||||
$model->_changed[$field] = $field;
|
||||
$model->$field = serialize($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a view path to help View::factory() calls
|
||||
*
|
||||
|
Reference in New Issue
Block a user