public function __construct()
 {
     $config['columns'] = array();
     $config['primaryKey'] = 'component_id';
     $config['data'] = array(array('component_id' => 'root-en-cat1_1', 'visible' => true, 'name' => 'Foo1en', 'filename' => 'foo1en'), array('component_id' => 'root-en-cat1_2', 'visible' => true, 'name' => 'Foo2en', 'filename' => 'foo2en'), array('component_id' => 'root-en-cat1_3', 'visible' => true, 'name' => 'Foo3en', 'filename' => 'foo3en'), array('component_id' => 'root-en-cat1_4', 'visible' => true, 'name' => 'Foo4en', 'filename' => 'foo4en'), array('component_id' => 'root-en-cat1_5', 'visible' => true, 'name' => 'Foo5en', 'filename' => 'foo5en'), array('component_id' => 'root-en-cat1_6', 'visible' => true, 'name' => 'Foo6en', 'filename' => 'foo6en'), array('component_id' => 'root-en-cat1_7', 'visible' => true, 'name' => 'Foo7en', 'filename' => 'foo7en'));
     parent::__construct($config);
 }
 public function __construct($config = array())
 {
     $config['data'] = array(array('id' => 1), array('id' => 2), array('id' => 3));
     $s = new Kwf_Model_Select();
     $config['exprs'] = array('foo1' => new Kwf_Model_Select_Expr_Child_GroupConcat('Children', 'id'), 'foo2' => new Kwf_Model_Select_Expr_Child_GroupConcat('Children', 'id', ', '), 'foo3' => new Kwf_Model_Select_Expr_Child_GroupConcat('Children', 'id', ', ', $s, 'sort_field'), 'foo4' => new Kwf_Model_Select_Expr_Child_GroupConcat('Children', 'id', ', ', $s, array('field' => 'sort_field', 'direction' => 'DESC')));
     parent::__construct($config);
 }
 public function __construct($config = array())
 {
     $config['columns'] = array();
     $config['primaryKey'] = 'id';
     $config['data'] = array(array('id' => 2, 'visible' => 1, 'component_id' => 'root-en_table', 'master_id' => 1, 'data' => '[]'), array('id' => 1, 'visible' => 1, 'component_id' => 'root-en_table', 'column1' => 'Abc', 'column3' => '234', 'master_id' => 2));
     parent::__construct($config);
 }
 public function __construct($config = array())
 {
     $config['namespace'] = 'listchildpages_teaser_pagemodel';
     $config['primaryKey'] = 'id';
     $config['data'] = array(array('id' => 400, 'pos' => 1, 'visible' => true, 'name' => 'name400', 'filename' => 'name400', 'custom_filename' => false, 'parent_id' => 'root', 'component' => 'listchild', 'is_home' => true, 'category' => 'main', 'hide' => false, 'parent_subroot_id' => 'root'), array('id' => 500, 'pos' => 1, 'visible' => true, 'name' => 'name500', 'filename' => 'name500', 'custom_filename' => false, 'parent_id' => 400, 'component' => 'empty', 'is_home' => false, 'category' => 'main', 'hide' => false, 'parent_subroot_id' => 'root'), array('id' => 501, 'pos' => 2, 'visible' => false, 'name' => 'name501', 'filename' => 'name501', 'custom_filename' => false, 'parent_id' => 400, 'component' => 'empty', 'is_home' => false, 'category' => 'main', 'hide' => false, 'parent_subroot_id' => 'root'), array('id' => 502, 'pos' => 3, 'visible' => true, 'name' => 'name502', 'filename' => 'name502', 'custom_filename' => false, 'parent_id' => 400, 'component' => 'empty', 'is_home' => false, 'category' => 'main', 'hide' => false, 'parent_subroot_id' => 'root'), array('id' => 401, 'pos' => 1, 'visible' => true, 'name' => 'name401', 'filename' => 'name401', 'custom_filename' => false, 'parent_id' => 'root', 'component' => 'listchildwithvisible', 'is_home' => false, 'category' => 'main', 'hide' => false, 'parent_subroot_id' => 'root'), array('id' => 600, 'pos' => 1, 'visible' => true, 'name' => 'name600', 'filename' => 'name600', 'custom_filename' => false, 'parent_id' => 401, 'component' => 'empty', 'is_home' => false, 'category' => 'main', 'hide' => false, 'parent_subroot_id' => 'root'), array('id' => 601, 'pos' => 2, 'visible' => false, 'name' => 'name601', 'filename' => 'name601', 'custom_filename' => false, 'parent_id' => 401, 'component' => 'empty', 'is_home' => false, 'category' => 'main', 'hide' => false, 'parent_subroot_id' => 'root'), array('id' => 602, 'pos' => 3, 'visible' => true, 'name' => 'name602', 'filename' => 'name602', 'custom_filename' => false, 'parent_id' => 401, 'component' => 'empty', 'is_home' => false, 'category' => 'main', 'hide' => false, 'parent_subroot_id' => 'root'));
     parent::__construct($config);
 }
 public function __construct($config = array())
 {
     $config['columns'] = array('fullname', 'email', 'phone', 'content');
     $config['namespace'] = 'favourites_model_session';
     $config['primaryKey'] = 'fullname';
     parent::__construct($config);
 }
 public function __construct($config = array())
 {
     $config['columns'] = array();
     $config['primaryKey'] = 'id';
     $config['data'] = array(array('id' => 1, 'component_id' => 'root-master_table', 'pos' => 0, 'visible' => 1, 'column1' => 'Abc', 'column2' => '1234', 'column3' => '234'), array('id' => 2, 'component_id' => 'root-master_table', 'pos' => 1, 'visible' => 1, 'column1' => 'Cde', 'column2' => '4321', 'column3' => '1234'));
     parent::__construct($config);
 }
 public function __construct($config = array())
 {
     $config['columns'] = array();
     $config['primaryKey'] = 'component_id';
     $config['data'] = array(array('component_id' => 'root-master_table', 'table_style' => 'standard'));
     parent::__construct($config);
 }
 public function __construct(array $config = array())
 {
     $config['uniqueIdentifier'] = 'unique';
     $config['columns'] = array('id', 'sib_lastname');
     $config['uniqueColumns'] = array('id');
     $config['data'] = array(array('id' => 1, 'sib_lastname' => 'herbertsen'));
     parent::__construct($config);
 }
 public function __construct($config = array())
 {
     $config['columns'] = array('id', 'component_id', 'user_id');
     $config['namespace'] = 'favourites_model_session';
     $config['primaryKey'] = 'id';
     $config['data'] = array(array('id' => 1, 'component_id' => '2001_favourite', 'user_id' => 1), array('id' => 2, 'component_id' => '2002', 'user_id' => 1), array('id' => 4, 'component_id' => '2001_favourite', 'user_id' => 2));
     parent::__construct($config);
 }
Beispiel #10
0
 public function __construct($config = array())
 {
     $config['columns'] = array('id', 'component_id', 'visible');
     $config['namespace'] = 'listchildpages_teaser_teaserwithchild_model';
     $config['primaryKey'] = 'component_id';
     //'{component_id}-{id}
     $config['data'] = array(array('component_id' => '401-600', 'visible' => false), array('component_id' => '401-601', 'visible' => true), array('component_id' => '401-602', 'visible' => true));
     parent::__construct($config);
 }
Beispiel #11
0
 public function __construct(array $values = array())
 {
     if (!isset($values['data'])) {
         $config['data'] = array();
         $master = true;
         foreach ($values as $key => $value) {
             $config['data'][] = array('id' => $key, 'filename' => $key, 'name' => $value, 'master' => $master);
             $master = false;
         }
     } else {
         $config = $values;
     }
     parent::__construct($config);
 }
 public function __construct($config = array())
 {
     $config['data'] = array(array('id' => 1, 'foo' => 'xxy', 'bar' => 'abc'), array('id' => 2, 'foo' => 'xxz', 'bar' => 'abcde'), array('id' => 3, 'foo' => 'xxa', 'bar' => 'abcdef'));
     $config['exprs'] = array();
     $config['exprs']['count_model2'] = new Kwf_Model_Select_Expr_Child_Count('Model2');
     $config['exprs']['count_model2_field'] = new Kwf_Model_Select_Expr_Child('Model2', new Kwf_Model_Select_Expr_Count('foo2'));
     $config['exprs']['count_model2_distinct'] = new Kwf_Model_Select_Expr_Child('Model2', new Kwf_Model_Select_Expr_Count('foo2', true));
     $config['exprs']['sum_model2'] = new Kwf_Model_Select_Expr_Child('Model2', new Kwf_Model_Select_Expr_Sum('foo2'));
     $select = new Kwf_Model_Select();
     $select->whereEquals('bar', 'bam');
     $config['exprs']['count_model2_bam'] = new Kwf_Model_Select_Expr_Child('Model2', new Kwf_Model_Select_Expr_Count(), $select);
     $config['exprs']['count_model2_bam_distinct'] = new Kwf_Model_Select_Expr_Child('Model2', new Kwf_Model_Select_Expr_Count('foo2', true), $select);
     $config['exprs']['sum_model2_bam'] = new Kwf_Model_Select_Expr_Child('Model2', new Kwf_Model_Select_Expr_Sum('foo2'), $select);
     $config['exprs']['contains_model2'] = new Kwf_Model_Select_Expr_Child_Contains('Model2');
     parent::__construct($config);
 }
 public function __construct(array $config = array())
 {
     if (isset($config['fileName'])) {
         $this->_fileName = 'temp/fnf-file-' . $config['fileName'];
     }
     if (!$this->_fileName && $this->_uniqueIdentifier) {
         $this->_fileName = 'temp/fnf-file-' . $this->_uniqueIdentifier;
     }
     if (!$this->_fileName && isset($config['uniqueIdentifier'])) {
         $this->_fileName = 'temp/fnf-file-' . $config['uniqueIdentifier'];
     }
     if (!$this->_fileName) {
         if (get_class($this) == 'Kwf_Model_FnFFile') {
             throw new Kwf_Exception("Inhert from Kwf_Model_FnFFile or set an filename/uniqueIdentifier");
         }
         $this->_fileName = 'temp/fnf-file-' . get_class($this);
     }
     parent::__construct($config);
 }
 public function __construct()
 {
     $config = array('primaryKey' => 'component_id', 'columns' => array(), 'data' => array(array('component_id' => 'root-master_test2-child', 'target' => 'http://www.vivid-planet.com/', 'open_type' => 'self')));
     parent::__construct($config);
 }
 public function __construct($config = array())
 {
     $config['data'] = array(array('id' => '1', 'pos' => 1, 'visible' => true, 'name' => 'Link', 'filename' => 'link', 'custom_filename' => false, 'parent_id' => 'root', 'component' => 'link', 'is_home' => false, 'category' => 'main', 'hide' => false, 'parent_subroot_id' => 'root'), array('id' => '2', 'pos' => 1, 'visible' => true, 'name' => 'Foo', 'filename' => 'foo', 'custom_filename' => false, 'parent_id' => 'root', 'component' => 'empty', 'is_home' => false, 'category' => 'main', 'hide' => false, 'parent_subroot_id' => 'root'), array('id' => '3', 'pos' => 2, 'visible' => true, 'name' => 'Bar', 'filename' => 'bar', 'custom_filename' => false, 'parent_id' => '2', 'component' => 'empty', 'is_home' => false, 'category' => 'main', 'hide' => false, 'parent_subroot_id' => 'root'));
     parent::__construct($config);
 }
Beispiel #16
0
 public function __construct($config = array())
 {
     $config['columns'] = array('id', 'number');
     $config['primaryKey'] = 'id';
     parent::__construct($config);
 }
 public function __construct()
 {
     $data = array(array('component_id' => 'root-en_test-categories_1', 'name' => 'Lorem en', 'visible' => 1), array('component_id' => 'root-en_test-categories_2', 'name' => 'Ipsum en', 'visible' => 1));
     $config = array('data' => $data);
     parent::__construct($config);
 }
Beispiel #18
0
 public function __construct($config = array())
 {
     $config = array('columns' => array('id', 'name', 'component_id'), 'primaryKey' => 'id', 'data' => array(array('id' => 1, 'name' => 'Foo', 'component_id' => 'root_directory'), array('id' => 2, 'name' => 'Bar', 'component_id' => 'root_directory'), array('id' => 3, 'name' => 'Baz', 'component_id' => 'root_directory'), array('id' => 4, 'name' => 'Foo1', 'component_id' => 'root_directory'), array('id' => 5, 'name' => 'Foo2', 'component_id' => 'root_directory'), array('id' => 6, 'name' => 'Foo3', 'component_id' => 'root_directory'), array('id' => 7, 'name' => 'Foo4', 'component_id' => 'root_directory'), array('id' => 8, 'name' => 'Foo5', 'component_id' => 'root_directory')));
     parent::__construct($config);
 }
Beispiel #19
0
 public function __construct($config = array())
 {
     $config['data'] = array(array('id' => 1, 'pos' => 1, 'parent_id' => null, 'name' => 'p1', 'search' => 'root'), array('id' => 2, 'pos' => 2, 'parent_id' => null, 'name' => 'p2', 'search' => 'root'), array('id' => 3, 'pos' => 1, 'parent_id' => 1, 'name' => 'p3', 'search' => 'l1'), array('id' => 4, 'pos' => 1, 'parent_id' => 3, 'name' => 'p4', 'search' => 'l2'), array('id' => 5, 'pos' => 1, 'parent_id' => 2, 'name' => 'p5', 'search' => 'l1'));
     parent::__construct($config);
 }
Beispiel #20
0
 public function __construct()
 {
     $config = array('data' => array(array('component_id' => 'root_child', 'has_content' => false)), 'primaryKey' => 'component_id');
     parent::__construct($config);
 }
Beispiel #21
0
 public function __construct()
 {
     $config = array('data' => array(array('id' => 1, 'visible' => true)));
     parent::__construct($config);
 }
Beispiel #22
0
 public function __construct()
 {
     $config = array('data' => array(array('id' => 1, 'title' => 'testtitle', 'description' => 'testdescription', 'link' => 'testlink')));
     parent::__construct($config);
 }
 public function __construct()
 {
     $config = array();
     $config['data'] = array(array('id' => 'facebook', 'url' => 'https://www.facebook.com/sharer.php?u={0}', 'name' => 'Facebook'), array('id' => 'myspace', 'url' => 'https://secure.myspace.com/index.cfm?fuseaction=login.simpleform&featureName=postToV3&dest={0}', 'name' => 'MySpace'), array('id' => 'xing', 'url' => 'https://www.xing.com/', 'name' => 'XING'), array('id' => 'flickr', 'url' => 'https://www.flickr.com/', 'name' => 'Flickr'), array('id' => 'twitter', 'url' => 'https://twitter.com/home?status={0}', 'name' => 'Twitter'), array('id' => 'studivz', 'url' => 'http://www.studivz.net/Link/Selection/Url/?u={0}', 'name' => 'StudiVZ'), array('id' => 'windowslive', 'url' => 'https://skydrive.live.com/sharefavorite.aspx%2f.SharedFavorites??marklet=1&mkt=en-us&url={0}', 'name' => 'Windows Live'), array('id' => 'yahoo', 'url' => 'http://myweb2.search.yahoo.com/myresults/bookmarklet?t={0}', 'name' => 'Yahoo!'), array('id' => 'google', 'url' => 'https://www.google.com/bookmarks/mark?op=add&hl=de&bkmk={0}', 'name' => 'Google'), array('id' => 'googleplus', 'url' => 'https://plusone.google.com/_/+1/confirm?hl=en&url={0}', 'name' => 'GooglePlus'), array('id' => 'linkarena', 'url' => 'http://linkarena.com/bookmarks/addlink/?url={0}', 'name' => 'LinkARENA'), array('id' => 'misterwong', 'url' => 'http://www.mister-wong.de/index.php?action=addurl&bm_url={0}', 'name' => 'Mister Wong'), array('id' => 'delicious', 'url' => 'http://del.icio.us/post?url={0}', 'name' => 'del.icio.us'), array('id' => 'digg', 'url' => 'http://digg.com/register?url={0}', 'name' => 'Digg'), array('id' => 'folkd', 'url' => 'http://www.folkd.com/submit/{0}', 'name' => 'Folkd'), array('id' => 'newsvine', 'url' => 'http://www.newsvine.com/_tools/seed&save?u={0}', 'name' => 'Newsvine'), array('id' => 'reddit', 'url' => 'http://reddit.com/submit?url={0}', 'name' => 'reddit'), array('id' => 'stumbleupon', 'url' => 'http://www.stumbleupon.com/submit?url={0}', 'name' => 'StumbleUpon'), array('id' => 'yigg', 'url' => 'http://yigg.de/neu?exturl={0}', 'name' => 'Yigg'), array('id' => 'webnews', 'url' => 'http://www.webnews.de/einstellen?url={0}', 'name' => 'Webnews'), array('id' => 'linkedin', 'url' => 'http://www.linkedin.com/shareArticle?url={0}', 'name' => 'Linkedin'), array('id' => 'pinterest', 'url' => 'http://pinterest.com/pin/create/button/?url={0}', 'name' => 'Pinterest'));
     parent::__construct($config);
 }
Beispiel #24
0
 public function __construct()
 {
     $config = array('primaryKey' => 'component_id', 'data' => array(array('component_id' => 'root-en_2', 'name' => 'test', 'filename' => 'test', 'visible' => 1, 'custom_filename' => 0), array('component_id' => 'root-en_3', 'name' => 'test2 en', 'filename' => 'test2_en', 'visible' => 1, 'custom_filename' => 0)));
     parent::__construct($config);
 }
 public function __construct()
 {
     $config = array('primaryKey' => 'component_id', 'data' => array(array('component_id' => 'root-en_test1', 'own_download' => 1), array('component_id' => 'root-en_test2', 'own_download' => 0)));
     parent::__construct($config);
 }
Beispiel #26
0
 public function __construct()
 {
     $config = array('data' => array(array('component_id' => 'root-c1', 'has_content' => true, 'content' => 'foo')), 'primaryKey' => 'component_id');
     parent::__construct($config);
 }
Beispiel #27
0
 public function __construct()
 {
     $config = array('data' => array(array('id' => 1, 'name' => 'F1', 'pos' => 1, 'visible' => 1)));
     parent::__construct($config);
 }
 public function __construct($config = array())
 {
     $config['data'] = array(array('id' => 1, 'model1_id' => 1, 'foo2' => 10, 'bar' => 'abcd'), array('id' => 2, 'model1_id' => 1, 'foo2' => 10, 'bar' => 'bam'), array('id' => 3, 'model1_id' => 1, 'foo2' => null, 'bar' => 'bam'), array('id' => 4, 'model1_id' => 2, 'foo2' => 10, 'bar' => 'bam'));
     parent::__construct($config);
 }
 public function __construct()
 {
     $config = array('data' => array(array('id' => '1', 'component_id' => 'root-master_test', 'visible' => true, 'title' => 'lipsum', 'teaser' => 'blablub', 'publish_date' => '2010-03-01'), array('id' => '2', 'component_id' => 'root-master_test', 'visible' => true, 'title' => 'lipsum2', 'teaser' => 'blablub2', 'publish_date' => '2010-03-01')));
     parent::__construct($config);
 }
 public function __construct()
 {
     $config['data'] = array(array('id' => 1, 'pos' => 1, 'visible' => true, 'name' => 'Foo1', 'filename' => 'foo1', 'custom_filename' => false, 'parent_id' => 'root-master-cat1', 'component' => 'firstChildPage', 'is_home' => false, 'hide' => false, 'parent_subroot_id' => 'root-master'), array('id' => 2, 'pos' => 2, 'visible' => true, 'name' => 'Foo2', 'filename' => 'foo2', 'custom_filename' => false, 'parent_id' => '1', 'component' => 'none', 'is_home' => false, 'hide' => false, 'parent_subroot_id' => 'root-master'), array('id' => 3, 'pos' => 3, 'visible' => true, 'name' => 'Foo3', 'filename' => 'foo3', 'custom_filename' => false, 'parent_id' => '1', 'component' => 'none', 'is_home' => false, 'hide' => false, 'parent_subroot_id' => 'root-master'), array('id' => 4, 'pos' => 1, 'visible' => true, 'name' => 'Foo4', 'filename' => 'foo4', 'custom_filename' => false, 'parent_id' => 'root-master-cat1', 'component' => 'firstChildPage', 'is_home' => false, 'hide' => false, 'parent_subroot_id' => 'root-master'), array('id' => 5, 'pos' => 1, 'visible' => true, 'name' => 'Foo5', 'filename' => 'foo5', 'custom_filename' => false, 'parent_id' => 'root-master-cat1', 'component' => 'firstChildPage', 'is_home' => false, 'hide' => false, 'parent_subroot_id' => 'root-master'), array('id' => 6, 'pos' => 1, 'visible' => true, 'name' => 'Foo6', 'filename' => 'foo6', 'custom_filename' => false, 'parent_id' => '5', 'component' => 'firstChildPage', 'is_home' => false, 'hide' => false, 'parent_subroot_id' => 'root-master'), array('id' => 7, 'pos' => 1, 'visible' => true, 'name' => 'Foo7', 'filename' => 'foo7', 'custom_filename' => false, 'parent_id' => '6', 'component' => 'none', 'is_home' => false, 'hide' => false, 'parent_subroot_id' => 'root-master'));
     parent::__construct($config);
 }