本文整理汇总了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');
}
示例2: setUp
function setUp()
{
$this->toolkit = lmbToolkit::save();
$this->connection = lmbToolkit::instance()->getDefaultDbConnection();
DriverPgsqlSetup($this->connection->getConnectionId());
parent::setUp();
}
示例3: setUp
function setUp()
{
$toolkit = lmbToolkit::save();
$this->conn = $toolkit->getDefaultDbConnection();
$this->db_table_test = new lmbTableGateway('test_db_table', $this->conn);
$this->_cleanUp();
}
示例4: setUp
function setUp()
{
lmbToolkit::save();
$this->toolkit = lmbToolkit::merge(new lmbLogTools());
$_SERVER['REQUEST_URI'] = null;
$_SERVER['REQUEST_METHOD'] = null;
}
示例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);
}
示例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();
}
示例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);
}
示例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();
}
示例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();
}
示例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);
}
示例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);
}
示例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();
}
示例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();
}
示例14: setUp
function setUp()
{
$this->toolkit = lmbToolkit::save();
$this->dsn = $this->toolkit->getDefaultDbDSN();
$this->conn = new MockDbConnection();
}
示例15: setUp
function setUp()
{
parent::setUp();
lmbToolkit::save();
}