-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCollection.php
42 lines (31 loc) · 893 Bytes
/
Collection.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Created by PhpStorm.
* User: bwalleshauser
* Date: 4/28/2015
* Time: 11:26 AM
*/
class Mainstreethost_GatorTraxBoatBuilder_Model_Json_Collection extends Mainstreethost_GatorTraxBoatBuilder_Model_Json_Abstract implements Mainstreethost_GatorTraxBoatBuilder_Model_Json_IAutojson
{
private $id;
private $name;
private $attributes;
public function construct()
{
}
public function Hydrate($option)
{
$this->id = Mage::helper('gator')->CamelCase($option->getName());
$this->name = $option->getName();
$i = 1;
foreach($option->getOptions() as $attribute)
{
//array_push($collection,Mage::getModel('gator/Json_Collection'));
}
return Mage::helper('gator')->ConvertToJson($this);
}
public function get($member)
{
return $this->$member;
}
}