Exemple #1
0
 /**
  * Construct a new object proxy
  *
  * @param array $array  The array
  * @param Main  $savant The savant templating system
  */
 public function __construct($array, $savvy)
 {
     if (!$array instanceof ArrayIterator) {
         $array = new ArrayIterator($array);
     }
     parent::__construct($array, $savvy);
 }
Exemple #2
0
 public function __construct($object, $savvy)
 {
     if (!$object instanceof ArrayObject) {
         throw new Savvy_UnexpectedValueException('$object must be an ArrayObject');
     }
     parent::__construct($object, $savvy);
 }