diff --git a/~dev_rating/application/classes/Model/Discipline.php b/~dev_rating/application/classes/Model/Discipline.php index 1dd010cdd56b50d449d98ae2c793cf05ef136a86..483676141ada980d9d560952bc7af055238ee518 100644 --- a/~dev_rating/application/classes/Model/Discipline.php +++ b/~dev_rating/application/classes/Model/Discipline.php @@ -15,7 +15,7 @@ * @property $type string * @property $isLocked bool */ -class Model_Discipline extends Model +class Model_Discipline extends Model implements Serializable { private $data; @@ -80,6 +80,23 @@ class Model_Discipline extends Model throw new InvalidArgumentException; } + /** + * String representation of object. + * @return string the string representation of the object or null + */ + public function serialize() { + return serialize($this->data); + } + + /** + * Constructs the object + * @param string $serialized + * The string representation of the object. + * @return void + */ + public function unserialize($serialized) { + $this->data = unserialize($serialized); + } /** * @param $id int discipline id