| @@ 14-20 (lines=7) @@ | ||
| 11 | Intraface_Doctrine_Intranet::singleton(1); |
|
| 12 | } |
|
| 13 | ||
| 14 | public function create() |
|
| 15 | { |
|
| 16 | require_once 'Intraface/modules/product/Product.php'; |
|
| 17 | $product = new Product($this->kernel); |
|
| 18 | ||
| 19 | return $product->save(array('name' => 'Product 1', 'price' => 100, 'unit' => 1)); |
|
| 20 | } |
|
| 21 | ||
| 22 | public function createVisibleInShop() |
|
| 23 | { |
|
| @@ 22-29 (lines=8) @@ | ||
| 19 | return $product->save(array('name' => 'Product 1', 'price' => 100, 'unit' => 1)); |
|
| 20 | } |
|
| 21 | ||
| 22 | public function createVisibleInShop() |
|
| 23 | { |
|
| 24 | require_once 'Intraface/modules/product/Product.php'; |
|
| 25 | $product = new Product($this->kernel); |
|
| 26 | $product->save(array('name' => 'Product 1', 'price' => '100,10', 'unit' => 1, 'do_show' => 1)); |
|
| 27 | ||
| 28 | return $product; |
|
| 29 | } |
|
| 30 | ||
| 31 | public function createVisibleInShopForPaging() |
|
| 32 | { |
|
| @@ 121-127 (lines=7) @@ | ||
| 118 | return $contact->save(array('name' => 'Test', 'email' => '[email protected]', 'phone' => '98468269')); |
|
| 119 | } |
|
| 120 | ||
| 121 | function createProduct() |
|
| 122 | { |
|
| 123 | $this->kernel->useModule('product'); |
|
| 124 | $product = new Product($this->kernel); |
|
| 125 | ||
| 126 | return $product->save(array('name' => 'Test', 'price' => 20, 'unit' => 1)); |
|
| 127 | } |
|
| 128 | ||
| 129 | function createCurrency() |
|
| 130 | { |
|