protected static function getFor($idsite, $field)
    {
        if (!isset(self::$infoSites[$idsite])) {
            $site = API::getInstance()->getSiteFromId($idsite);
            self::setSiteFromArray($idsite, $site);
        }

        return self::$infoSites[$idsite][$field];
    }
protected static function getFor($idsite, $field)
    {
        if (!isset(self::$infoSites[$idsite])) {
            $site = API::getInstance()->getSiteFromId($idsite);
            self::setSiteFromArray($idsite, $site);
        }

        return self::$infoSites[$idsite][$field];
    }
protected static function getFor ( $ idsite , $ field ) { if ( ! isset ( self :: $ infoSites [ $ idsite ] ) ) { $ site = API :: getInstance ( ) -> getSiteFromId ( $ idsite ) ; self :: setSiteFromArray ( $ idsite , $ site ) ; } return self :: $ infoSites [ $ idsite ] [ $ field ] ; }
Utility function. Returns the value of the specified field for the
site with the specified ID.

@param int $idsite The ID of the site whose data is being accessed.
@param string $field The name of the field to get.
@return string
Utility function . Returns the value of the specified field for the site with the specified ID .