/**
  * Contructor
  */
 public function __construct()
 {
     $page = '/admin/modules';
     $viewhas = array('singular' => 'module', 'plural' => 'modules');
     $input = array('create' => array('name' => 'This is title', 'short_description' => 'This is body', 'cn_name' => 'CN name', 'cn_short_description' => 'CN short body', 'category_id' => 1, 'sku' => 'UNIQUESKU001', 'cn_name' => 'This is cn name', 'cn_short_description' => 'This is cn short description', 'cn_long_description' => 'This is cn long description'), 'edit' => array('id' => 1, 'name' => 'This is title', 'short_description' => 'This is body', 'cn_name' => 'CN name', 'cn_short_description' => 'CN short body', 'category_id' => 1, 'sku' => 'UNIQUESKU001', 'cn_name' => 'This is cn name', 'cn_short_description' => 'This is cn short description', 'cn_long_description' => 'This is cn long description'));
     parent::__construct($page, $viewhas, $input);
 }
 /**
  * Contructor
  */
 public function __construct()
 {
     $page = '/admin/announcements';
     $viewhas = array('singular' => 'announcement', 'plural' => 'announcements');
     $input = array('create' => array('title' => 'This is title', 'content' => 'This is body', 'private' => false), 'edit' => array('id' => 1, 'title' => 'This is title', 'content' => 'This is body', 'private' => false));
     parent::__construct($page, $viewhas, $input);
 }
Ejemplo n.º 3
0
 /**
  * Contructor
  */
 public function __construct()
 {
     $page = '/admin/posts';
     $viewhas = array('singular' => 'post', 'plural' => 'posts');
     $input = array('create' => array('title' => 'This is the title', 'slug' => 'this_is_a_slug', 'content' => 'This is the body', 'private' => false, 'featured' => true, 'category_id' => 1, 'cn_title' => 'This is cn title', 'cn_slug' => 'This is cn slug', 'cn_content' => 'This is cn content'), 'edit' => array('id' => 1, 'title' => 'This is the title', 'slug' => 'this_is_a_slug', 'content' => 'This is the body', 'private' => false, 'featured' => true, 'category_id' => 1, 'cn_title' => 'This is cn title', 'cn_slug' => 'This is cn slug', 'cn_content' => 'This is cn content'));
     parent::__construct($page, $viewhas, $input);
 }
 /**
  * Contructor
  */
 public function __construct()
 {
     $page = '/admin/coupons';
     $viewhas = array('singular' => 'coupon', 'plural' => 'coupons');
     $input = array('create' => array('code' => 'ABC123', 'description' => 'This is a description', 'amount' => '10.99', 'is_percent' => true, 'start_date' => '02/05/2016 05:39 PM', 'end_date' => '03/05/2016 05:39 PM', 'max_spent' => '200.99', 'min_spent' => '199.88', 'usage_limit_per_coupon' => 10, 'usage_limit_per_user' => 1, 'multiple_coupons' => true, 'exclude_sale_item' => true, 'usage_limit_per_coupon_count' => 0, 'product_id' => array(1), 'category_id' => array(1), 'pricelist_id' => array(1)), 'edit' => array('id' => 1, 'code' => 'ABC123', 'description' => 'This is a description', 'amount' => '10.99', 'is_percent' => true, 'start_date' => '02/05/2016 05:39 PM', 'end_date' => '03/05/2016 05:39 PM', 'max_spent' => '200.99', 'min_spent' => '199.88', 'usage_limit_per_coupon' => 10, 'usage_limit_per_user' => 1, 'multiple_coupons' => true, 'exclude_sale_item' => true, 'usage_limit_per_coupon_count' => 0, 'product_id' => array(1), 'category_id' => array(1), 'pricelist_id' => array(1)));
     parent::__construct($page, $viewhas, $input);
 }
 /**
  * Contructor
  */
 public function __construct()
 {
     $page = '/admin/categories';
     $viewhas = array('singular' => 'category', 'plural' => 'categories');
     $input = array('create' => array('name' => 'This is a name', 'short_description' => 'This is short description', 'long_description' => 'This is long description', 'active' => true, 'order' => 1, 'parent_id' => 1, 'cn_name' => 'This is cn name', 'cn_short_description' => 'This is cn short description', 'cn_long_description' => 'This is cn long description'), 'edit' => array('id' => '1', 'name' => 'This is a name', 'short_description' => 'This is short description', 'long_description' => 'This is long description', 'active' => true, 'order' => 1, 'parent_id' => 1, 'cn_name' => 'This is cn name', 'cn_short_description' => 'This is cn short description', 'cn_long_description' => 'This is cn long description'));
     parent::__construct($page, $viewhas, $input);
 }
 /**
  * Contructor
  */
 public function __construct()
 {
     $page = '/admin/orders';
     $viewhas = array('singular' => 'order', 'plural' => 'orders');
     $input = array('create' => array('product_id' => array(1), 'payment_status' => 'Completed', 'paid' => 1.99, 'transaction_id' => 1, 'email' => '*****@*****.**'), 'edit' => array('id' => 1, 'product_id' => array(1), 'payment_status' => 'Completed', 'paid' => 1.99, 'transaction_id' => 1, 'email' => '*****@*****.**'));
     parent::__construct($page, $viewhas, $input);
 }