Returns the path for skills for the given sport
@param Sport $sport
@return Path
422242
public function getSkillsPath(Sport $sport) {
		return $this->getSportPath($sport)->append($this->getSkillsSegment($sport));
	}
383544
public function path(string $thumbSize = null)
    {
        return $this->attributes['type']
            .DS.$this->attributes['category']
            .($thumbSize ? DS.$thumbSize : '')
            .DS.$this->attributes['name'].'.'.$this->attributes['extension'];
    }
158873
protected function pathAction($s)
    {
        $s = strtolower($s);
        $s = preg_replace('#-(?=[a-z])#', ' ', $s);
        $s = preg_replace('#_(?=[a-z])#', ' ', $s);
        $s = substr(ucwords('x'.$s), 1);
        $s = str_replace(' ', '', $s);

        return $s;
    }
842360
public function getPath($part=null){
        
        if(is_null($part)){
            return $this->path;
        }
        
        if(isset($this->path_array[$part])){
            return $this->path_array[$part];
        }
        
        return false;
    }
827659
public function getPath(string $ref)
    {
        $properties     = $this->getProperties();
        $optionsPath    = $properties['optionsPath'];

        return array_key_exists($ref, $optionsPath) ? $optionsPath[$ref] : false;
    }
1220375
protected function getPath($path)
    {
        $pathsFile = __DIR__.'/../../../../../config/rinvex.composable.php';
        $paths = file_exists($pathsFile) ? require $pathsFile : [];

        return $paths[$path] ?? __DIR__.$this->paths[$path];
    }
1170790
protected static function build_paths($force) {
        global $DB;

        if ($force or $DB->record_exists_select('context', "contextlevel = ".CONTEXT_COURSECAT." AND (depth = 0 OR path IS NULL)")) {
            if ($force) {
                $ctxemptyclause = $emptyclause = '';
            } else {
                $ctxemptyclause = "AND (ctx.path IS NULL OR ctx.depth = 0)";
                $emptyclause    = "AND ({context}.path IS NULL OR {context}.depth = 0)";
            }

            $base = '/'.SYSCONTEXTID;

            // Normal top level categories
            $sql = "UPDATE {context}
                       SET depth=2,
                           path=".$DB->sql_concat("'$base/'", 'id')."
                     WHERE contextlevel=".CONTEXT_COURSECAT."
                           AND EXISTS (SELECT 'x'
                                         FROM {course_categories} cc
                                        WHERE cc.id = {context}.instanceid AND cc.depth=1)
                           $emptyclause";
            $DB->execute($sql);

            // Deeper categories - one query per depthlevel
            $maxdepth = $DB->get_field_sql("SELECT MAX(depth) FROM {course_categories}");
            for ($n=2; $n<=$maxdepth; $n++) {
                $sql = "INSERT INTO {context_temp} (id, path, depth, locked)
                        SELECT ctx.id, ".$DB->sql_concat('pctx.path', "'/'", 'ctx.id').", pctx.depth+1, ctx.locked
                          FROM {context} ctx
                          JOIN {course_categories} cc ON (cc.id = ctx.instanceid AND ctx.contextlevel = ".CONTEXT_COURSECAT." AND cc.depth = $n)
                          JOIN {context} pctx ON (pctx.instanceid = cc.parent AND pctx.contextlevel = ".CONTEXT_COURSECAT.")
                         WHERE pctx.path IS NOT NULL AND pctx.depth > 0
                               $ctxemptyclause";
                $trans = $DB->start_delegated_transaction();
                $DB->delete_records('context_temp');
                $DB->execute($sql);
                context::merge_context_temp_table();
                $DB->delete_records('context_temp');
                $trans->allow_commit();

            }
        }
    }
725982
function getPath()
    {
        $path = $this->getName();
        
        if ($this->__nestLeft)
            $path = $this->__nestLeft->getPath().self::SEPARATOR.$path;
        
        return $path;
    }
1361918
public function dbPath($path = null)
    {
        if (null === $path) {
            return $this->dbPath;
        }
        $this->dbPath = $path;

        return $this;
    }
1153177
public static function selectTeamList(
        $statisticState
    ) {
        $statisticState = (object) $statisticState;

        $teamList = [];
        foreach ($statisticState->team as $teamKey => $teamItem) {
            $teamList[$teamKey] = $teamItem;
        }

        return $teamList;
    }
732186
protected function getTeam($t)
    {
        $teamInfo = (array)$t;
        $team = new Team();
        $fields = array_keys($teamInfo);
        foreach ($fields as $field) {
            // I hope, that API-response will be changed and players_ids, leagues_ids will become arrays
            if (preg_match('/^player_\d+_account_id$/', $field)) {
                $team->addPlayerId($teamInfo[$field]);
                continue;
            }
            if (preg_match('/^league_id_\d+$/', $field)) {
                $team->addLeagueId($teamInfo[$field]);
                continue;
            }
            $team->set($field, (string)$teamInfo[$field]);
        }
        return $team;
    }
28199
public function fighter2()
    {
        return $this->group->championship->category->isTeam
            ? $this->team2()
            : $this->competitor2();
    }
984010
public function getValueToUpdate()
    {
        try {
            if ($this->championship->category->isTeam()) {
                return $this->teams->map->id[0];
            }

            return $this->competitors->map->id[0];
        } catch (ErrorException $e) {
            return;
        }
    }
1052134
public function champion($championId)
	{
		if ( ! isset($this->info['champions'][$championId]))
		{
			return null;
		}

		return $this->info['champions'][$championId];
	}
832355
protected function getPath()
    {
        if (null === $this->parent) {
            return null;
        }
        if (null !== ( $pPath = $this->parent->getPath() )) {
            return $pPath . '.' . $this->handle;
        }else {
            return $this->handle;
        }
    }
789994
public function getWebAssetsPath()
    {
        $class = $this->getClass();
        $classParts = explode("\\", $class);
        $class = end($classParts);

        $path = 'bundles/'.strtolower(
                str_replace(
                    'Bundle', '',
                    $class
                )
            );
        return $path;
    }
821170
public function league($identity)
	{
		if ( ! isset($this->info['leagues']))
		{
			// no leagues
			return null;
		}
		$leagues = $this->info['leagues'];
		foreach ($leagues as $league)
		{
			if (is_null($league->playerOrTeam))
			{
				// we could not find the player or team in this league
				continue;
			}

			// try the name
			if (strtolower($league->playerOrTeam->playerOrTeamName) == strtolower($identity))
			{
				return $league;
			}

			// try the id
			if ($league->playerOrTeam->playerOrTeamId == $identity)
			{
				return $league;
			}
		}

		return null;
	}