Commit bd984d2f authored by ZZZ[GONE] frebault's avatar ZZZ[GONE] frebault
Browse files

Add Extended Fields

parent 6cd2d10d
<?php
/**
* Created by PhpStorm.
* User: Pierre FREBAULT
* Date: 20/10/2014
* Time: 15:18
*/
namespace GGUSHelpdesk\ExtendedFields;
class ArrayObjectFactory extends \ArrayObject implements IXFieldsFactory{
protected $data = array();
function createInstanceFromFieldsList(array $fieldsList)
{
$this->data = $fieldsList;
return $this->serialize();
}
function createInstanceFromString($string)
{
return $this->unserialize($string);
}
}
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: Pierre FREBAULT
* Date: 20/10/2014
* Time: 15:15
*/
namespace GGUSHelpdesk\ExtendedFields;
interface IXFieldsFactory {
function createInstanceFromFieldsList(array $fieldsList);
function createInstanceFromString($string);
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment