public static function createWithSource($name, $src, $basePath = REASG_SELF_DIRECTORY) { $a = new ui_view(); $a->name = str_replace('.', '_', $name); $a->initializeSource(self::getSourceWithIncludes($src, $basePath)); return $a; }