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


PHP lmbToolkit::save方法代码示例

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


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

示例1: setUp

 function setUp()
 {
     $this->toolkit = lmbToolkit::save();
     $this->conn = $this->toolkit->getDefaultDbConnection();
     $this->db = new lmbSimpleDb($this->conn);
     $this->db->delete('test_db_table');
 }
开发者ID:snowjobgit,项目名称:limb,代码行数:7,代码来源:lmbAutoDbTransactionFilterTest.class.php

示例2: setUp

 function setUp()
 {
     $this->toolkit = lmbToolkit::save();
     $this->connection = lmbToolkit::instance()->getDefaultDbConnection();
     DriverPgsqlSetup($this->connection->getConnectionId());
     parent::setUp();
 }
开发者ID:snowjobgit,项目名称:limb,代码行数:7,代码来源:lmbPgsqlDbInfoTest.class.php

示例3: setUp

 function setUp()
 {
     $toolkit = lmbToolkit::save();
     $this->conn = $toolkit->getDefaultDbConnection();
     $this->db_table_test = new lmbTableGateway('test_db_table', $this->conn);
     $this->_cleanUp();
 }
开发者ID:snowjobgit,项目名称:limb,代码行数:7,代码来源:lmbTableGatewayTest.class.php

示例4: setUp

 function setUp()
 {
     lmbToolkit::save();
     $this->toolkit = lmbToolkit::merge(new lmbLogTools());
     $_SERVER['REQUEST_URI'] = null;
     $_SERVER['REQUEST_METHOD'] = null;
 }
开发者ID:snowjobgit,项目名称:limb,代码行数:7,代码来源:lmbLogToolsTest.class.php

示例5: setUp

 function setUp()
 {
     $this->toolkit = lmbToolkit::save();
     $this->compiled_dir = LIMB_VAR_DIR . '/compiled';
     $this->config = new lmbWactTemplateConfig($this->compiled_dir);
     $this->locator = new WactTestTemplateLocator($this->config);
     $this->initWactDictionaries($this->config);
 }
开发者ID:knevcher,项目名称:limb,代码行数:8,代码来源:lmbWactTestCase.class.php

示例6: setUp

 function setUp()
 {
     $this->cache_dir = LIMB_VAR_DIR . '/fpcache/';
     lmbFs::rm($this->cache_dir);
     $this->filter2 = new MockInterceptingFilter();
     $this->user = new lmbFullPageCacheUser();
     $this->toolkit = lmbToolkit::save();
 }
开发者ID:snowjobgit,项目名称:limb,代码行数:8,代码来源:lmbFullPageCacheFilterTest.class.php

示例7: setUp

 function setUp()
 {
     $toolkit = lmbToolkit::save();
     $this->conn = $toolkit->getDefaultDbConnection();
     $this->db = new lmbSimpleDb($this->conn);
     $this->db->delete('lmb_session');
     $this->driver = new lmbSessionDbStorage($this->conn);
 }
开发者ID:snowjobgit,项目名称:limb,代码行数:8,代码来源:lmbSessionDbStorageTest.class.php

示例8: setUp

 function setUp()
 {
     $toolkit = lmbToolkit::save();
     $this->conn = new lmbAuditDbConnection($toolkit->getDefaultDbConnection());
     $toolkit->setDefaultDbConnection($this->conn);
     $this->db = new lmbSimpleDb($this->conn);
     $this->creator = new lmbARTestingObjectMother($this->conn);
     $this->_cleanUp();
 }
开发者ID:snowjobgit,项目名称:limb,代码行数:9,代码来源:lmbARBaseTestCase.class.php

示例9: setUp

 function setUp()
 {
     parent::setUp();
     $this->_toolkit = lmbToolkit::save();
     $this->_input_stream_parser = new MockInputStreamParser();
     $this->_toolkit->setInputStreamParser($this->_input_stream_parser);
     $_SERVER['REQUEST_METHOD'] = null;
     $_POST = array();
 }
开发者ID:knevcher,项目名称:limb,代码行数:9,代码来源:lmbHttpRequestTest.class.php

示例10: setUp

 function setUp()
 {
     $this->toolkit = lmbToolkit::save();
     $this->request = $this->toolkit->getRequest();
     $this->response = $this->toolkit->getResponse();
     $this->session = $this->toolkit->getSession();
     $this->session->reset();
     $this->connection = $this->toolkit->getDefaultDbConnection();
     $this->db = new lmbSimpleDb($this->connection);
 }
开发者ID:snowjobgit,项目名称:limb,代码行数:10,代码来源:lmbWebAppTestCase.class.php

示例11: setUp

 function setUp()
 {
     lmbToolkit::save();
     $this->toolkit = lmbToolkit::merge(new lmbConfTools());
     $this->application_configs_dir = lmb_var_dir() . '/app/settings';
     lmbFs::mkdir($this->application_configs_dir);
     $this->package_configs_dir = lmb_var_dir() . '/package/settings';
     lmbFs::mkdir($this->package_configs_dir);
     $tests_include_apth = $this->application_configs_dir . ';' . $this->package_configs_dir;
     $this->toolkit->setConfIncludePath($tests_include_apth);
 }
开发者ID:anykey84,项目名称:YaBackup,代码行数:11,代码来源:lmbConfToolsTest.class.php

示例12: testIsDefaultDbDSNAvailable

 function testIsDefaultDbDSNAvailable()
 {
     $tools = new lmbDbTools();
     $tools->setDefaultDbDSN("mysql://localhost/test");
     $this->assertTrue($tools->isDefaultDbDSNAvailable());
     $toolkit = lmbToolkit::save();
     $tools = new lmbDbTools();
     $toolkit->setConf('db', new ExceptionalDbConfStub());
     $this->assertFalse($tools->isDefaultDbDSNAvailable());
     lmbToolkit::restore();
 }
开发者ID:knevcher,项目名称:limb,代码行数:11,代码来源:lmbDbToolsTest.class.php

示例13: testUseRussianAsCurrentLocale

 function testUseRussianAsCurrentLocale()
 {
     $toolkit = lmbToolkit::save();
     $toolkit->addLocaleObject(new lmbLocale('ru_RU', new lmbIni(dirname(__FILE__) . '/../../../i18n/locale/ru_RU.ini')));
     $date = new lmbDateTime('2004-12-20 10:15:30');
     $time = $date->getStamp();
     $code = '{$#var|i18n_date:"ru_RU", "stamp"}';
     $tpl = $this->_createMacroTemplate($code, 'tpl.html');
     $tpl->set('var', $time);
     $out = $tpl->render();
     $this->assertEqual($out, '20.12.2004');
     lmbToolkit::restore();
 }
开发者ID:snowjobgit,项目名称:limb,代码行数:13,代码来源:lmbI18NDateMacroFilterTest.class.php

示例14: setUp

 function setUp()
 {
     $this->toolkit = lmbToolkit::save();
     $this->dsn = $this->toolkit->getDefaultDbDSN();
     $this->conn = new MockDbConnection();
 }
开发者ID:snowjobgit,项目名称:limb,代码行数:6,代码来源:lmbDBALTest.class.php

示例15: setUp

 function setUp()
 {
     parent::setUp();
     lmbToolkit::save();
 }
开发者ID:snowjobgit,项目名称:limb,代码行数:5,代码来源:lmbCacheToolsTest.class.php


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