Get the project interfaces

@return string
488193
private function getInterfaces()
    {
        $r = '';

        // Inside interfaces
        foreach ($this->modules as $module) {
            $interfaces = (array)$this->xml->xpath('/draggy/module[@name=\'' . $module . '\']/interface');

            foreach ($interfaces as $interface) {
                $interfaceAttributes = (array)$interface;
                $interfaceAttributes = $interfaceAttributes['@attributes'];

                $this->checkMandatoryAttributes('Interface in module ' . $module, $interfaceAttributes, ['name']);

                $className = $interfaceAttributes['name'];

                $this->checkMandatoryAttributes(
                    'Interface ' . $className . ' in module ' . $module,
                    $interfaceAttributes,
                    ['left', 'top']
                );

                $r .= 'var i = new Interface(\'' . $interfaceAttributes['name'] . '\',\'' . str_replace(
                    '\\',
                    '\\\\',
                    $module
                ) . '\');' . PHP_EOL;
                $r .= 'i.moveTo(\'' . ( $interfaceAttributes['left'] /*- 1*/ ) . 'px\',\'' . ( $interfaceAttributes['top'] /*- 1*/ ) . 'px\');' . PHP_EOL;

                $r .= $this->getInterfaceProperties($interfaceAttributes, 'i');

                $r .= 'i.setModule(Container.prototype.getContainerByName(\'' . str_replace(
                    '\\',
                    '\\\\',
                    $module
                ) . '\').getId());' . PHP_EOL;
            }
        }

        // Outside interfaces
        $interfaces = (array)$this->xml->xpath('/draggy/loose/interface');

        foreach ($interfaces as $interface) {
            $interfaceAttributes = (array)$interface;
            $interfaceAttributes = $interfaceAttributes['@attributes'];

            $this->checkMandatoryAttributes('Loose interface', $interfaceAttributes, ['name']);

            $className = $interfaceAttributes['name'];

            $this->checkMandatoryAttributes('Loose interface ' . $className, $interfaceAttributes, ['left', 'top']);

            $r .= 'var i = new Interface(\'' . $className . '\');' . PHP_EOL;
            $r .= 'i.moveTo(\'' . ( $interfaceAttributes['left'] ) . 'px\',\'' . ( $interfaceAttributes['top'] ) . 'px\');' . PHP_EOL;

            $r .= $this->getInterfaceProperties($interfaceAttributes, 'i');
        }

        return $r;
    }
237782
public JClass []getInterfaces()
  {
    lazyLoad();
    
    JClass []interfaces = new JClass[_interfaces.size()];

    for (int i = 0; i < _interfaces.size(); i++) {
      String name = _interfaces.get(i);
      name = name.replace('/', '.');
      
      interfaces[i] = getClassLoader().forName(name);
    }
    
    return interfaces;
  }
185857
public static function getAvailableInterfaceLanguages()
    {
        $languages = [];
        $fh = Core::make('helper/file');

        if (file_exists(DIR_LANGUAGES)) {
            $contents = $fh->getDirectoryContents(DIR_LANGUAGES);
            foreach ($contents as $con) {
                if (is_dir(DIR_LANGUAGES . '/' . $con) && file_exists(DIR_LANGUAGES . '/' . $con . '/LC_MESSAGES/messages.mo')) {
                    $languages[] = $con;
                }
            }
        }
        if (file_exists(DIR_LANGUAGES_CORE)) {
            $contents = $fh->getDirectoryContents(DIR_LANGUAGES_CORE);
            foreach ($contents as $con) {
                if (is_dir(DIR_LANGUAGES_CORE . '/' . $con) && file_exists(DIR_LANGUAGES_CORE . '/' . $con . '/LC_MESSAGES/messages.mo') && (!in_array($con, $languages))) {
                    $languages[] = $con;
                }
            }
        }

        return $languages;
    }
1147629
public function getRouteDefinitions()
    {
        $output = '';

        foreach ($this->getEndpointsInClasses($this->getReader()) as $endpoint) {
            $output .= $endpoint->toRouteDefinition().PHP_EOL.PHP_EOL;
        }

        return trim($output);
    }
351165
protected function getProject() {
		$projectName = $this->getRequest()->param('Project');
		return DNProject::get()->filter('Name', $projectName)->first();
	}
1034348
public function getInterface(string $name)
    {
        if ($this->hasInterface($name)) {
            return $this->interfaces[$name];
        }
        return null;
    }
1281009
public function getInterfaceBuilder()
    {
        if (!isset($this->interfaceBuilder)) {
            $this->interfaceBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'interface');
        }

        return $this->interfaceBuilder;
    }
787179
public function getEnvironments()
    {
        $project = $this->getProject();
        if (!$project) {
            return [];
        }

        return array_keys($this->api->getEnvironments($project, false, false));
    }
150233
public function getLanguages(string $project): ResponseInterface
    {
        return $this->client->sendRequest($this->createRequest('GET', $this->createUri("/api/2/project/$project/languages/")));
    }
924680
public final function getParentProject() {
        $result = \Chigi\Chiji\Util\ProjectUtil::searchRelativeProject($this);
        if (count($result) < 1) {
            throw new \Chigi\Chiji\Exception\ProjectMemberNotFoundException("MEMBER NOT FOUND");
        }
        return $result[0];
    }
821844
function getProjects() {
		$getUserProjectsRequest = new getUserProjects ();
		$getUserProjectsRequest->isSubProjectIncluded = TRUE;
		$projects = $this->projectService->getUserProjects ( $getUserProjectsRequest )->return;

		$i = 0;
		$proj_arr = array ();
		if (is_array ( $projects )) {
			foreach ( $projects as $project ) {
				$pdproject = new PDProject ( $project );
				$proj_arr [$i ++] = $pdproject;
			}
		} else {
			$fullProject = $this->getProject ( $projects->projectInfo->shortCode );
			$proj_arr [0] = $fullProject;
		}
		
		return $proj_arr;
	}
1269957
public function getEnabledProjects()
    {
        return array_filter($this->codex->projects->all(), function(Project $project){
            return $project->config('git.enabled', false) === true;
        });
    }
289583
protected function getProps()
  {
    $props = new stdClass();

    if($this->currObj instanceof TeamSpeak3_Node_Host)
    {
      $this->id        = 0;
      $this->icon      = 0;
      $props->version  = $this->currObj->version("version")->toString();
      $props->platform = $this->currObj->version("platform")->toString();
      $props->users    = $this->currObj->virtualservers_total_clients_online;
      $props->slots    = $this->currObj->virtualservers_total_maxclients;
      $props->flags    = 0;
    }
    elseif($this->currObj instanceof TeamSpeak3_Node_Server)
    {
      $props->id       = $this->currObj->getId();
      $props->icon     = $this->currObj->virtualserver_icon_id < 0 ? pow(2, 32)-($this->currObj->virtualserver_icon_id*-1) : $this->currObj->virtualserver_icon_id;
      $props->welcmsg  = strlen($this->currObj->virtualserver_welcomemessage) ? trim($this->currObj->virtualserver_welcomemessage) : null;
      $props->hostmsg  = strlen($this->currObj->virtualserver_hostmessage) ? trim($this->currObj->virtualserver_hostmessage) : null;
      $props->version  = TeamSpeak3_Helper_Convert::versionShort($this->currObj->virtualserver_version)->toString();
      $props->platform = $this->currObj->virtualserver_platform->toString();
      $props->country  = null;
      $props->users    = $this->currObj->clientCount();
      $props->slots    = $this->currObj->virtualserver_maxclients;
      $props->flags    = 0;

      $props->flags += $this->currObj->virtualserver_status == "online"   ? 1  : 0;
      $props->flags += $this->currObj->virtualserver_flag_password        ? 2  : 0;
      $props->flags += $this->currObj->virtualserver_autostart            ? 4  : 0;
      $props->flags += $this->currObj->virtualserver_weblist_enabled      ? 8  : 0;
      $props->flags += $this->currObj->virtualserver_ask_for_privilegekey ? 16 : 0;
    }
    elseif($this->currObj instanceof TeamSpeak3_Node_Channel)
    {
      $props->id       = $this->currObj->getId();
      $props->icon     = $this->currObj->isSpacer() ? 0 : $this->currObj->channel_icon_id < 0 ? pow(2, 32)-($this->currObj->channel_icon_id*-1) : $this->currObj->channel_icon_id;
      $props->path     = trim($this->currObj->getPathway());
      $props->topic    = strlen($this->currObj->channel_topic) ? trim($this->currObj->channel_topic) : null;
      $props->codec    = $this->currObj->channel_codec;
      $props->users    = $this->currObj->total_clients == -1 ? 0 : $this->currObj->total_clients;
      $props->slots    = $this->currObj->channel_maxclients == -1 ? $this->currObj->getParent()->virtualserver_maxclients : $this->currObj->channel_maxclients;
      $props->famusers = $this->currObj->total_clients_family == -1 ? 0 : $this->currObj->total_clients_family;
      $props->famslots = $this->currObj->channel_maxfamilyclients == -1 ? $this->currObj->getParent()->virtualserver_maxclients : $this->currObj->channel_maxfamilyclients;
      $props->spacer   = $this->getSpacerType();
      $props->flags    = 0;

      $props->flags += $this->currObj->channel_flag_default           ? 1   : 0;
      $props->flags += $this->currObj->channel_flag_password          ? 2   : 0;
      $props->flags += $this->currObj->channel_flag_permanent         ? 4   : 0;
      $props->flags += $this->currObj->channel_flag_semi_permanent    ? 8   : 0;
      $props->flags += ($props->codec == 3 || $props->codec == 5)     ? 16  : 0;
      $props->flags += $this->currObj->channel_needed_talk_power != 0 ? 32  : 0;
      $props->flags += $this->currObj->total_clients != -1            ? 64  : 0;
      $props->flags += $this->currObj->isSpacer()                     ? 128 : 0;
    }
    elseif($this->currObj instanceof TeamSpeak3_Node_Client)
    {
      $props->id       = $this->currObj->getId();
      $props->icon     = $this->currObj->client_icon_id < 0 ? pow(2, 32)-($this->currObj->client_icon_id*-1) : $this->currObj->client_icon_id;
      $props->version  = TeamSpeak3_Helper_Convert::versionShort($this->currObj->client_version)->toString();
      $props->platform = $this->currObj->client_platform->toString();
      $props->country  = strlen($this->currObj->client_country) ? trim($this->currObj->client_country) : null;
      $props->awaymesg = strlen($this->currObj->client_away_message) ? trim($this->currObj->client_away_message) : null;
      $props->memberof = array();
      $props->badges   = $this->currObj->getBadges();
      $props->flags    = 0;

      foreach($this->currObj->memberOf() as $num => $group)
      {
        $props->memberof[$num] = new stdClass();

        $props->memberof[$num]->name  = trim($group->name);
        $props->memberof[$num]->icon  = $group->iconid < 0 ? pow(2, 32)-($group->iconid*-1) : $group->iconid;
        $props->memberof[$num]->order = $group->sortid;
        $props->memberof[$num]->flags = 0;

        $props->memberof[$num]->flags += $group->namemode;
        $props->memberof[$num]->flags += $group->type == 2                             ? 4  : 0;
        $props->memberof[$num]->flags += $group->type == 0                             ? 8  : 0;
        $props->memberof[$num]->flags += $group->savedb                                ? 16 : 0;
        $props->memberof[$num]->flags += $group instanceof TeamSpeak3_Node_Servergroup ? 32 : 0;
      }

      $props->flags += $this->currObj->client_away                                                                                                                             ? 1   : 0;
      $props->flags += $this->currObj->client_is_recording                                                                                                                     ? 2   : 0;
      $props->flags += $this->currObj->client_is_channel_commander                                                                                                             ? 4   : 0;
      $props->flags += $this->currObj->client_is_priority_speaker                                                                                                              ? 8   : 0;
      $props->flags += $this->currObj->client_is_talker                                                                                                                        ? 16  : 0;
      $props->flags += $this->currObj->channelGetById($this->currObj->cid)->channel_needed_talk_power > $this->currObj->client_talk_power && !$this->currObj->client_is_talker ? 32  : 0;
      $props->flags += $this->currObj->client_input_muted || !$this->currObj->client_input_hardware                                                                            ? 64  : 0;
      $props->flags += $this->currObj->client_output_muted || !$this->currObj->client_output_hardware                                                                          ? 128 : 0;
    }
    elseif($this->currObj instanceof TeamSpeak3_Node_Servergroup || $this->currObj instanceof TeamSpeak3_Node_Channelgroup)
    {
      $props->id     = $this->currObj->getId();
      $props->icon   = $this->currObj->iconid < 0 ? pow(2, 32)-($this->currObj->iconid*-1) : $this->currObj->iconid;
      $props->order  = $this->currObj->sortid;
      $props->n_map  = $this->currObj->n_member_addp;
      $props->n_mrp  = $this->currObj->n_member_removep;
      $props->flags  = 0;

      $props->flags += $this->currObj->namemode;
      $props->flags += $this->currObj->type == 2                             ? 4  : 0;
      $props->flags += $this->currObj->type == 0                             ? 8  : 0;
      $props->flags += $this->currObj->savedb                                ? 16 : 0;
      $props->flags += $this->currObj instanceof TeamSpeak3_Node_Servergroup ? 32 : 0;
    }

    return $props;
  }
554340
public function getAppNames()
    {
        $apps = [];
        if ($projectRoot = $this->getWelcomeCommand()->getProjectRoot()) {
            foreach (LocalApplication::getApplications($projectRoot) as $app) {
                $name = $app->getName();
                if ($name !== null) {
                    $apps[] = $name;
                }
            }
        } elseif ($project = $this->getProject()) {
            if ($environment = $this->api->getEnvironment('master', $project, false)) {
                $apps = array_keys($environment->getSshUrls());
            }
        }

        return $apps;
    }
52924
protected function getAllProjects(InputInterface $input)
    {
        $projects = $this->api()->getProjects();
        if ($input->getOption('sort')) {
            $this->api()->sortResources($projects, $input->getOption('sort'));
        }
        if ($input->getOption('reverse')) {
            $projects = array_reverse($projects, true);
        }

        return $projects;
    }
473715
public static function getProjectConfig()
    {
        if (!isset(self::$projectConfig)) {
            $config = self::getConfigInstance();
            $values = self::getLocalConfigValues();

            self::$projectConfig = empty($values)
                ? $config
                : $config->update($values);
        }

        return self::$projectConfig;
    }
16020
public static function getAppliedFilters()
    {
        $classMethods = get_class_methods(get_class());
        $calledClassMethods = get_class_methods(get_called_class());

        $filteredMethods = array_filter(
            $calledClassMethods, function ($calledClassMethod) use ($classMethods) {
                return !in_array($calledClassMethod, $classMethods, true);
            }
        );

        return \Illuminate\Support\Facades\Request::only($filteredMethods);
    }