Esempio n. 1
0
 function levelIdsTruncateAfter($level)
 {
     $ids = $this->toValueArray();
     foreach ($this->schema->getNextLevels($level) as $levelToDrop) {
         unset($ids[$levelToDrop]);
     }
     return $ids;
 }
 function testNextLevelsMake()
 {
     $schema = new VF_Schema();
     $this->assertEquals(array('model', 'year'), $schema->getNextLevels('make'));
 }