本文整理汇总了PHP中Kwc_TestAbstract类的典型用法代码示例。如果您正苦于以下问题:PHP Kwc_TestAbstract类的具体用法?PHP Kwc_TestAbstract怎么用?PHP Kwc_TestAbstract使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Kwc_TestAbstract类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
parent::setUp('Kwc_Trl_NewsCategories_Root');
$trlElements = array();
$trlElements['kwf']['de'] = array();
Kwf_Trl::getInstance()->setTrlElements($trlElements);
}
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:7,代码来源:Test.php
示例2: setUp
public function setUp()
{
parent::setUp('Kwf_Component_Cache_LinkTag_Intern_Root_Component');
$this->_linkModel = Kwf_Model_Abstract::getInstance('Kwf_Component_Cache_LinkTag_Intern_Root_Link_Model');
$this->_pagesModel = Kwf_Model_Abstract::getInstance('Kwf_Component_Cache_LinkTag_Intern_Root_Model');
$this->_tableModel = Kwf_Model_Abstract::getInstance('Kwf_Component_Cache_LinkTag_Intern_Root_TableModel');
}
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:7,代码来源:Test.php
示例3: setUp
public function setUp()
{
parent::setUp('Kwf_Component_Cache_MenuHasContent_Root');
/*
root
-menuMain (empty)
-menuTop (empty)
-top
-menuMain (otherCategory)
-menuTop (menu)
2 (invisible)
-menuMain (parentMenu)
-menuTop (parentMenu)
-main
-menuMain (menu)
-menuTop (otherCategory)
1
-menuMain (parentMenu)
-menuTop (parentContent)
3
-menuMain (parentContent)
-menuTop (parentContent)
4
-menuMain (parentContent)
-menuTop (parentContent)
*/
}
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:27,代码来源:ContentTest.php
示例4: setUp
public function setUp()
{
parent::setUp('Kwf_Component_Cache_MenuHasContent_Root');
Kwf_Component_Cache_MenuHasContent_Root_Events::$hasContentChanged = array();
/*
root
-menuMain
-menuTop
-top
-menuMain
-menuTop
2 (invisible)
-menuMain
-menuTop
-main
-menuMain
-menuTop
1
-menuMain
-menuTop
3
-menuMain
-menuTop
4
-menuMain
-menuTop
*/
}
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:28,代码来源:Test.php
示例5: tearDown
public function tearDown()
{
if (isset($_SERVER['HTTP_REFERER'])) {
unset($_SERVER['HTTP_REFERER']);
}
parent::tearDown();
}
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:7,代码来源:Test.php
示例6: setUp
public function setUp()
{
parent::setUp('Kwf_Component_Acl_AllowedComponents_Root');
$acl = new Kwf_Acl();
$this->_acl = $acl->getComponentAcl();
$acl->addRole(new Zend_Acl_Role('special'));
$this->_acl->allowComponent('special', 'Kwf_Component_Acl_AllowedComponents_Special');
}
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:8,代码来源:Test.php
示例7: setUp
public function setUp()
{
parent::setUp('Kwf_Component_Acl_Root');
$acl = new Kwf_Acl();
$this->_acl = $acl->getComponentAcl();
$acl->addRole(new Kwf_Acl_Role('test', 'MainRole'));
$acl->addRole(new Kwf_Acl_Role_Additional('testsub', 'SubRole', 'test'));
}
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:8,代码来源:Test.php
示例8: tearDown
public function tearDown()
{
Kwf_Trl::getInstance()->setWebCodeLanguage(null);
Kwf_Trl::getInstance()->unsetTrlElements();
Kwf_Cache_SimpleStatic::clear('trl-');
Kwf_Cache_SimpleStatic::clear('trlp-');
parent::tearDown();
}
开发者ID:koala-framework,项目名称:koala-framework,代码行数:8,代码来源:Test.php
示例9: setUp
public function setUp()
{
parent::setUp('Kwf_Component_PagesController_WithCategories_Root');
$acl = new Kwf_Acl();
$this->_acl = $acl->getComponentAcl();
$acl->addRole(new Zend_Acl_Role('test'));
$this->_acl->allowComponent('test', null);
}
开发者ID:koala-framework,项目名称:koala-framework,代码行数:8,代码来源:Test.php
示例10: setUp
public function setUp()
{
parent::setUp('Kwc_Trl_Legacy_Columns_Root');
//initialize model content, I don't know why here
$proxyModel = Kwf_Model_Abstract::getInstance('Kwc_Trl_Legacy_Columns_Columns_Trl_ColumnsTrlModel')->getProxyModel();
$proxyModel->createRow(array('component_id' => 'root-en_test-1', 'visible' => 1))->save();
$proxyModel->createRow(array('component_id' => 'root-en_test-2', 'visible' => 1))->save();
$proxyModel->createRow(array('component_id' => 'root-en_test-3', 'visible' => 1))->save();
}
开发者ID:koala-framework,项目名称:koala-framework,代码行数:9,代码来源:Test.php
示例11: setUp
public function setUp()
{
parent::setUp('Kwf_Component_PagesController_PagesGeneratorActions_Root');
$acl = new Kwf_Acl();
$this->_acl = $acl->getComponentAcl();
$acl->addRole(new Zend_Acl_Role('test'));
$this->_acl->allowComponent('test', null);
$acl->addRole(new Zend_Acl_Role('special'));
$this->_acl->allowComponent('special', 'Kwf_Component_PagesController_PagesGeneratorActions_SpecialComponent');
$this->_acl->allowComponent('special', 'Kwf_Component_PagesController_PagesGeneratorActions_SpecialWithoutEditComponent');
}
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:11,代码来源:Test.php
示例12: setUp
public function setUp()
{
parent::setUp('Kwf_Component_Generator_AlternativeComponent_Root');
/*
root
_1 (composite)
-child (default)
_2 (composite)
-child (alternative)
*/
}
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:11,代码来源:Test.php
示例13: setUp
public function setUp()
{
parent::setUp('Kwf_Component_Cache_LinkTag_FirstChildPage_Root_Component');
/*
-root
-1
-2 (linktag_firstchildpage)
-3
-4
-5
*/
$this->_pagesModel = Kwf_Model_Abstract::getInstance('Kwf_Component_Cache_LinkTag_FirstChildPage_Root_Model');
$this->_tableModel = Kwf_Model_Abstract::getInstance('Kwf_Component_Cache_LinkTag_FirstChildPage_Root_TableModel');
}
开发者ID:koala-framework,项目名称:koala-framework,代码行数:14,代码来源:Test.php
示例14: setUp
public function setUp()
{
parent::setUp('Kwc_Menu_ClearCacheExpanded_Root');
$this->_root->setFilename('');
/*
root
-menuMain
-menuSub
-main
-menuMain
-menuSub
1
-menuMain
-menuSub
3
-menuMain
-menuSub
4
-menuMain
-menuSub
10
-menuMain
-menuSub
11
-menuMain
-menuSub
8
-menuMain
-menuSub
9
-menuMain
-menuSub
5
-menuMain
-menuSub
6
-menuMain
-menuSub
7
-menuMain
-menuSub
-bottom
-menuMain
-menuSub
2
-menuMain
-menuSub
*/
}
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:49,代码来源:AddPageTest.php
示例15: setUp
public function setUp()
{
/*
root
|-ic
| |-child
|-1
|-ic
| |-child
|-2
|-ic
|-child
*/
parent::setUp('Kwf_Component_Cache_Box_IcRoot_Component');
}
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:15,代码来源:InheritContentTest.php
示例16: setUp
public function setUp()
{
parent::setUp('Kwc_Trl_ImageEnlarge_Root');
//master image
Kwf_Model_Abstract::getInstance('Kwc_Trl_ImageEnlarge_ImageEnlarge_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-master_test1', 'kwf_upload_id' => '1'), array('component_id' => 'root-master_test2', 'kwf_upload_id' => '1'), array('component_id' => 'root-master_test3', 'kwf_upload_id' => '1'), array('component_id' => 'root-master_test4', 'kwf_upload_id' => '1'), array('component_id' => 'root-master_test5', 'kwf_upload_id' => '1'), array('component_id' => 'root-master_test6', 'kwf_upload_id' => '1'), array('component_id' => 'root-master_test7', 'kwf_upload_id' => '1')));
//image trl
Kwf_Model_Abstract::getInstance('Kwc_Trl_ImageEnlarge_ImageEnlarge_Trl_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-en_test1', 'own_image' => 0), array('component_id' => 'root-en_test2', 'own_image' => 0), array('component_id' => 'root-en_test3', 'own_image' => 1), array('component_id' => 'root-en_test4', 'own_image' => 1), array('component_id' => 'root-en_test5', 'own_image' => 1), array('component_id' => 'root-en_test6', 'own_image' => 0), array('component_id' => 'root-en_test7', 'own_image' => 0)));
//image trl own image
Kwf_Model_Abstract::getInstance('Kwc_Trl_ImageEnlarge_ImageEnlarge_Trl_Image_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-en_test1-image', 'kwf_upload_id' => null), array('component_id' => 'root-en_test2-image', 'kwf_upload_id' => null), array('component_id' => 'root-en_test3-image', 'kwf_upload_id' => '6'), array('component_id' => 'root-en_test4-image', 'kwf_upload_id' => '6'), array('component_id' => 'root-en_test5-image', 'kwf_upload_id' => '6'), array('component_id' => 'root-en_test6-image', 'kwf_upload_id' => null), array('component_id' => 'root-en_test7-image', 'kwf_upload_id' => '3'), array('component_id' => 'root-en_test7-image', 'kwf_upload_id' => '3')));
//master enlarge tag
Kwf_Model_Abstract::getInstance('Kwc_Trl_ImageEnlarge_ImageEnlarge_EnlargeTag_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-master_test1-linkTag'), array('component_id' => 'root-master_test2-linkTag'), array('component_id' => 'root-master_test3-linkTag'), array('component_id' => 'root-master_test4-linkTag'), array('component_id' => 'root-master_test5-linkTag'), array('component_id' => 'root-master_test6-linkTag'), array('component_id' => 'root-master_test7-linkTag')));
//enlarge tag trl
Kwf_Model_Abstract::getInstance('Kwc_Trl_ImageEnlarge_ImageEnlarge_EnlargeTag_Trl_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-en_test1-linkTag'), array('component_id' => 'root-en_test2-linkTag'), array('component_id' => 'root-en_test3-linkTag'), array('component_id' => 'root-en_test4-linkTag'), array('component_id' => 'root-en_test5-linkTag'), array('component_id' => 'root-en_test6-linkTag'), array('component_id' => 'root-en_test7-linkTag')));
//enlarge tag trl own image
Kwf_Model_Abstract::getInstance('Kwc_Trl_ImageEnlarge_ImageEnlarge_EnlargeTag_Trl_Image_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-en_test1-linkTag-image'), array('component_id' => 'root-en_test2-linkTag-image'), array('component_id' => 'root-en_test3-linkTag-image'), array('component_id' => 'root-en_test4-linkTag-image'), array('component_id' => 'root-en_test5-linkTag-image'), array('component_id' => 'root-en_test6-linkTag-image'), array('component_id' => 'root-en_test7-linkTag-image')));
}
开发者ID:koala-framework,项目名称:koala-framework,代码行数:16,代码来源:Test.php
示例17: setUp
public function setUp()
{
parent::setUp('Kwf_Component_Cache_Menu_Root2_Component');
/*
root
-menu
_1 (/f1)
-menu
_2 (/f1/f2)
-menu
_3 (f1/f2/f3)
-parent-menu
_4 (/f4)
-menu-menu
*/
}
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:16,代码来源:SecondTest.php
示例18: setUp
public function setUp()
{
parent::setUp('Kwc_Menu_ClearCache_Root');
$this->_root->setFilename('');
/*
root
-menuMain
-menuSub
-main
-menuMain
-menuSub
1
-menuMain
-menuSub (Menu)
3
-menuMain
-menuSub (ParentMenu)
4
-menuMain
-menuSub (ParentContent)
8
-menuMain
-menuSub
5
-menuMain
-menuSub
6
-menuMain
-menuSub
7
-menuMain
-menuSub
-bottom
-menuMain
-menuSub
2
-menuMain
-menuSub
9
-menuMain
-menuSub
10
-menuMain
-menuSub
*/
}
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:46,代码来源:ChangeParentTest.php
注:本文中的Kwc_TestAbstract类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论