Ejemplo n.º 1
0
 public static function get($id, $meta = 0, $v = false)
 {
     if (isset(Block::$class[$id])) {
         $classname = Block::$class[$id];
         $b = new $classname($meta);
     } else {
         $b = new GenericBlock((int) $id, $meta);
     }
     if ($v instanceof Position) {
         $b->position($v);
     }
     return $b;
 }