Modifiche ai model Rimossa la constrained interface in quanto inefficace e troppo pesante
32 lines
870 B
PHP
32 lines
870 B
PHP
<?php
|
|
/*
|
|
Author: Riccardo Di Dato
|
|
Creation Date: 08/gen/2016
|
|
*/
|
|
|
|
interface ConstrainedInterface {
|
|
const SET_BEHAVIOUR_NORMAL = 1;
|
|
const SET_BEHAVIOUR_IGNORE = 2;
|
|
const SET_BEHAVIOUR_THROW = 3;
|
|
|
|
const UNSET_BEHAVIOUR_NORMAL = 1;
|
|
const UNSET_BEHAVIOUR_IGNORE = 2;
|
|
const UNSET_BEHAVIOUR_THROW = 3;
|
|
|
|
const GET_BEHAVIOUR_NORMAL = 1;
|
|
const GET_BEHAVIOUR_EMPTY = 2;
|
|
const GET_BEHAVIOUR_THROW = 3;
|
|
|
|
public function setConstrained($key, $value);
|
|
public function getConstrained($key);
|
|
public function unsetConstrained($key);
|
|
|
|
public function createSetBehaviour($key, $behaviour, ConstrainedBehaviour $callbackClass = null);
|
|
public function createGetBehaviour($key, $behaviour, ConstrainedBehaviour $callbackClass = null);
|
|
public function createUnsetBehaviour($key, $behaviour, ConstrainedBehaviour $callbackClass = null);
|
|
|
|
|
|
public function getBase();
|
|
}
|
|
|
|
?>
|