Repo: 根据门店编号获取名称

@param int $id
@return string
508530
public function getName($id)
    {
        if ($this->shops === null) {
            // TODO record data有默认值时,indexBy会出错
            $this->shops = wei()->shop()
                ->select('id, name')
                ->enabled()
                ->fetchAll();
            $this->shops = wei()->coll->indexBy($this->shops, 'id');
        }
        if (isset($this->shops[$id])) {
            return $this->shops[$id]['name'];
        } else {
            return '';
        }
    }
1194877
protected function getPHPFilterName($id)
    {
        foreach (filter_list() as $name) {
            if (filter_id($name) == $id) {
                return $name;
            }
        }
        if (filter_id($id) === FALSE) {
            return FALSE;
        }
        return $id;
    }
1038924
public function removeDeployKey(int $id): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/keys/:id',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo(), $id), Request::METHOD_DELETE);
    }
1188116
public static function getDisplayName($id)
    {
        $instance = self::_instance();

        if (!isset($instance->_items[$id])) {
            return false;
        }
        return $instance->_items[$id]['displayName'];
    }
31847
public function read($id)
    {
        $session = $this->getPersistence()->get(self::KEY_NAMESPACE.$id); 
        return is_string($session) ? $session : '';
    }
56157
protected function _metadatasFile($id)
    {
        $path = $this->_path($id);
        $fileName = $this->_idToFileName('internal-metadatas---' . $id);
        return $path . $fileName;
    }
346255
public function getCharacter4Id($id)
    {
        /** @var \GameBackend\Entity\SRO\Shard\Repository\Character $repository */
        $repository = $this->getShardEntityManager()->getRepository($this->getGameOptions()->getEntityShardCharacter());
        return $repository->getCharacter4Id($id, $this->getNotListedJIDList());
    }
193218
protected function getAbstractId($id)
    {
        if (isset($this->aliases[$id])) {
            $id = $this->aliases[$id];
        }

        return $id;
    }
484599
protected function generatePathname($id)
    {
        if (!file_exists($this->basePath)) {
            mkdir($this->basePath, 0777, true);
        }

        return $this->basePath.'/'.$id;
    }
1220677
public function getInfo($id)
    {
        // 验证有效性
        if ($this->isValid($id) === false) {
            return false;
        }
        $code = $this->_checkIdArgument($id);
        $addressInfo = $this->_getAddressInfo($code['addressCode'], $code['birthdayCode']);

        return [
            'addressCode'   => $code['addressCode'],
            'abandoned'     => isset($this->_addressCodeList[$code['addressCode']]) ? 0 : 1,
            'address'       => is_array($addressInfo) ? implode($addressInfo) : '',
            'addressTree'   => array_values($addressInfo),
            'birthdayCode'  => date('Y-m-d', strtotime($code['birthdayCode'])),
            'constellation' => $this->_getConstellation($code['birthdayCode']),
            'chineseZodiac' => $this->_getChineseZodiac($code['birthdayCode']),
            'sex'           => ($code['order'] % 2 === 0 ? 0 : 1),
            'length'        => $code['type'],
            'checkBit'      => $code['checkBit'],
        ];
    }
740114
public function match($id)
    {
        return $id == $this->id || (strlen($this->getAlias()) && @preg_match($this->getAlias(), $id));
    }
575953
protected function escapeId($id)
    {
        if (!$this->replace) {
            return $id;
        }

        return str_replace(array_keys($this->replace), array_values($this->replace), $id);
    }
163666
public function getCacheId($id)
    {
        if(is_array($id))
        {
            $tmp = "";
            foreach ($id as $key => $value)
            {
                $tmp .= $key . "_" . $value;
            }
            $id = $tmp;
        }
        return $this->addCacheIndex($this->table_name . '_' . $id);
    }
1084040
protected function getFileName($id)
    {
        if (is_dir($id)) {
            return sprintf('%1$s/%2$s.%3$s', rtrim($id, DIRECTORY_SEPARATOR), StringUtils::random(20), $this->extension);
        }

        $dirName = dirname($id);

        if (!file_exists($id) && $dirName === '.') {
             return sprintf('%1$s/%2$s', $this->directory, $id);
        }

        if (!file_exists($id) && !is_writable($dirName)) {
            throw new NotWritableException(sprintf('File could not be written to system as target is not writable: %s', $id));
        }

        return $id;
    }
201790
def id_to_name(id):
    
    name = pdgid_names.get(id)
    if not name:
        name = repr(id)
    return name
490481
public function id($id)
    {
        $parts = array_merge(array($this->namespace), func_get_args());
        return trim(implode(self::$namespaceSeparator, $parts), self::$namespaceSeparator);
    }
945617
function getAwaitingsByID(string $id) {
        $objs = array();
        
        foreach($this->awaiting as $key => $value) {
            if(\strpos($key, $id) !== false) {
                $objs[$key] = $value;
            }
        }
        
        return $objs;
    }