當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。