当前位置: 首页>>代码示例>>PHP>>正文


PHP Limb::saveToolkit方法代码示例

本文整理汇总了PHP中Limb::saveToolkit方法的典型用法代码示例。如果您正苦于以下问题:PHP Limb::saveToolkit方法的具体用法?PHP Limb::saveToolkit怎么用?PHP Limb::saveToolkit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Limb的用法示例。


在下文中一共展示了Limb::saveToolkit方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 function setUp()
 {
     $this->acl_toolkit = new MockSimpleACLBaseToolkit($this);
     $this->authorizer = new MockSimpleACLAuthorizer($this);
     $this->acl_toolkit->setReturnReference('getAuthorizer', $this->authorizer);
     Limb::registerToolkit($this->acl_toolkit, 'SimpleACL');
     Limb::saveToolkit();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:SimpleACLAccessFilterTest.class.php

示例2: setUp

 function setUp()
 {
     $toolkit =& Limb::toolkit();
     $conn =& $toolkit->getDBConnection();
     $this->db =& new SimpleDB($conn);
     $this->_cleanUp();
     $toolkit =& Limb::saveToolkit();
     $toolkit->setRequestResolver('tree_based_entity', new TreeBasedEntityRequestResolver());
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:9,代码来源:DeleteServiceNodeCommandTest.class.php

示例3: setUp

  function setUp()
  {
    $view = new Component();
    $this->form_component = new MockFormComponent($this);
    $view->addChild($this->form_component, $this->form_id);

    $toolkit =& Limb :: saveToolkit();
    $toolkit->setView($view);
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:9,代码来源:FormInitCommandTest.class.php

示例4: setUp

  function setUp()
  {
    $template = "<form id='test_form' runat='server'></form>";
    registerTestingTemplate('FormProcessingCommandTest.html', $template);

    $toolkit =& Limb :: saveToolkit();

    $template = new Template('FormProcessingCommandTest.html');
    $toolkit->setView($template);
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:10,代码来源:FormProcessingCommandTest.class.php

示例5: setUp

  function setUp()
  {
    $toolkit =& Limb :: saveToolkit();

    $this->action_resolver = new MockRequestResolver($this);
    $this->service_resolver = new MockRequestResolver($this);
    $this->service = new MockService($this);

    $toolkit->setRequestResolver('action', $this->action_resolver);
    $toolkit->setRequestResolver('service', $this->service_resolver);

    $this->fc = new MockFilterChain($this);
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:13,代码来源:ServiceActionMappingFilterTest.class.php

示例6: setUp

 function setUp()
 {
     $toolkit =& Limb::toolkit();
     $conn =& $toolkit->getDBConnection();
     $this->db =& new SimpleDB($conn);
     $this->_cleanUp();
     $form_template_path = '/test_content_service_node_form.html';
     $form_name = 'test_form';
     RegisterTestingTemplate($form_template_path, '<form id="' . $form_name . '" runat="server"></form>');
     $validator = new LimbHandle(LIMB_SERVICE_NODE_DIR . '/validators/CommonEditServiceNodeValidator');
     $this->command = new EditServiceNodeCommand($form_template_path, $form_name, $validator);
     $toolkit =& Limb::saveToolkit();
     $toolkit->setRequestResolver('tree_based_entity', new TreeBasedEntityRequestResolver());
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:14,代码来源:EditServiceNodeCommandTest.class.php

示例7: setUp

 function setUp()
 {
     $toolkit =& Limb::toolkit();
     $conn =& $toolkit->getDBConnection();
     $this->db =& new SimpleDB($conn);
     $this->_cleanUp();
     $template_path = '/test_content_service_node_form.html';
     $form_id = 'test_form';
     $validator = new EditTestContentServiceNodeValidator();
     RegisterTestingTemplate($template_path, '<form id="' . $form_id . '" runat="server"></form>');
     // dataspace field => content part field
     $content_map = array('annotation' => 'annotation', 'content' => 'content');
     $this->command = new EditContentServiceNodeCommand($template_path, $form_id, $validator, $content_map);
     $toolkit =& Limb::saveToolkit();
     $toolkit->setRequestResolver('tree_based_entity', new TreeBasedEntityRequestResolver());
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:16,代码来源:EditContentServiceNodeCommandTest.class.php

示例8: testSaveToolkit

  function testSaveToolkit()
  {
    $toolkit = new ImagineryToolkit();

    Limb :: registerToolkit($toolkit, 'test');

    $toolkit2 =& Limb :: saveToolkit('test');
    $this->assertTrue($toolkit2->reseted);

    $toolkit2->foo();

    //restoring saved toolkit
    Limb :: restoreToolkit('test');

    //should be a reference to $toolkit
    $toolkit3 =& Limb :: toolkit('test');
    $toolkit3->bar();

    $this->assertFalse($toolkit->foo_called);
    $this->assertTrue($toolkit->bar_called);

    Limb :: restoreToolkit('test');
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:23,代码来源:LimbTest.class.php

示例9: setUp

 function setUp()
 {
   Limb :: saveToolkit();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:4,代码来源:TreeBasedEntityDAOTest.class.php

示例10: setUp

 function setUp()
 {
   $this->toolkit =& Limb :: saveToolkit();
   $this->fc = new MockFilterChain($this);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:5,代码来源:UIDialogFilterTest.class.php

示例11: setUp

 function setUp()
 {
   $this->toolkit =& Limb :: saveToolkit();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:4,代码来源:CommandProcessingFilterTest.class.php

示例12: setUp

 function setUp()
 {
   Limb :: saveToolkit();
   $this->component = new LimbPagerComponent();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:5,代码来源:LimbPagerComponentTest.class.php

示例13: setUp

 function setUp()
 {
     $this->cmd = new SimpleACLLoginCommand();
     Limb::saveToolkit();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:5,代码来源:SimpleACLLoginCommandTest.class.php


注:本文中的Limb::saveToolkit方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。