本文整理汇总了PHP中VF_Schema::levels方法的典型用法代码示例。如果您正苦于以下问题:PHP VF_Schema::levels方法的具体用法?PHP VF_Schema::levels怎么用?PHP VF_Schema::levels使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VF_Schema
的用法示例。
在下文中一共展示了VF_Schema::levels方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
function setUp()
{
VF_Singleton::getInstance()->setReadAdapter(new VF_TestDbAdapter(array('dbname' => VAF_DB_NAME, 'username' => VAF_DB_USERNAME, 'password' => VAF_DB_PASSWORD)));
$schemaGenerator = new VF_Schema_Generator();
$schemaGenerator->dropExistingTables();
VF_Schema::$levels = null;
}
示例2: testShouldSetSchema
function testShouldSetSchema()
{
$schemaGenerator = new VF_Schema_Generator();
$schemaGenerator->dropExistingTables();
VF_Schema::$levels = null;
$command = __DIR__ . '/vfmagento schema --force --levels="year,make,model"';
exec($command);
$schema = new VF_Schema();
$this->assertEquals(array('year', 'make', 'model'), $schema->getLevels(), 'should create default schema of MMY');
}
示例3: setUp
function setUp()
{
Elite_Vaf_Helper_Data::getInstance(true);
Elite_Vaf_Helper_Data::getInstance()->setRequest($this->getRequest());
VF_Schema::$levels = null;
$_SESSION = array();
$_GET = array();
$_REQUEST = array();
$_POST = array();
$_FILES = array();
$this->resetIdentityMaps();
$this->truncateTables();
$this->dropAndRecreateMockProductTable();
Mage::resetRegistry();
$this->doSetUp();
}
示例4: setUp
function setUp()
{
VF_Singleton::reset();
VF_Singleton::getInstance(true);
VF_Singleton::getInstance()->setRequest(new Zend_Controller_Request_Http());
$database = new VF_TestDbAdapter(array('dbname' => VAF_DB_NAME, 'username' => VAF_DB_USERNAME, 'password' => VAF_DB_PASSWORD));
VF_Singleton::getInstance()->setReadAdapter($database);
VF_Schema::$levels = null;
$_SESSION = array();
$_GET = array();
$_REQUEST = array();
$_POST = array();
$_FILES = array();
$this->resetIdentityMaps();
$this->dropAndRecreateMockProductTable();
if (class_exists('Mage', false)) {
Mage::resetRegistry();
}
$this->doSetUp();
}
示例5: reset
static function reset()
{
self::$levels = '';
self::$global_status = '';
}