@param        $name
@param string $format

@return null|string
@throws NotFoundException
196695
public function getName($name, $format = Metadata::RAW)
    {
        $names = $this->getNames();
        
        if (isset($names[$name])) {
            switch ($format) {
                case Metadata::RAW:
                    return $names[$name];
                case Metadata::CAMILIZED:
                    return Inflector::camelize($names[$name]);
                case Metadata::CLASSIFIED:
                    return Inflector::classify($names[$name]);
                case Metadata::UNDERSCORED:
                    return Inflector::underscore($names[$name]);
                default:
                    throw new NotFoundException('Unable to find correct inflector formatter');
            }
        }
        
        throw new NotFoundException(sprintf('Unable to find column name for "%s" with format "%s"',
            $name, $format));
    }
1319715
public function format($format = null)
    {
        $format ?: $format = $this->format;

        return strtr($format, $this->getFormattedReplacements());
    }
340232
protected function checkFormat($format, $type = null)
    {
        return !is_null($format) ? $format : $this->getFormat($type);
    }
425094
public function getLoader($format)
    {
        $loader = null;
        $i = 0;
        $ids = array_keys($this->loaderIds);

        while ($i < count($ids) && null === $loader) {
            if (in_array($format, $this->loaderIds[$ids[$i]])) {
                $loader = $this->container->get($ids[$i]);
            }
            $i++;
        }

        if (!($loader instanceof LoaderInterface)) {
            throw new \RuntimeException(sprintf('No loader found for "%s" format.', $format));
        }

        return $loader;
    }
829654
private function getResourceLookup($format)
    {
        if(in_array($format, self::$formats)){
            if(!isset($this->lookups)){
                $this->lookups = [
                    'list' => $this->getServiceManager()->get(ListResourceLookup::SERVICE_ID),
                    'tree' => $this->getServiceManager()->get(TreeResourceLookup::SERVICE_ID)
                ];
            }
            return $this->lookups[$format];
        }
        return null;
    }
1182259
public Date getDate(String name, String format) {
        Object value = get(name);
        if (value instanceof Date) {
            return (Date)value;
        }
        
        if (value != null) {
            try {
                return new SimpleDateFormat(format).parse(value.toString());
            } catch (ParseException e) {
                // ignore
            }
        }
        return null;
    }
285980
public function out($format = null)
    {
        if (0 == count($this->url)) {
            throw new Exception('No URL is set');
        }
        if (! is_null($format)) {
            $this->format($format);
        }
        if (is_null($this->response)) {
            $this->call();
        }

        return $this->parseResponse();
    }
1296013
protected static function parseFormat($format)
    {
        static::loadFormats();

        // If the format equals a constant's value, just return it.
        if (in_array($format, static::$formats, true)) {
            return $format;
        }

        // Otherwise we'll assume the format is the constant's name.
        return Arr::get(static::$formats, strtoupper($format));
    }
306718
protected function setFormat($format = null)
    {
        if ($format == '' && $this->image instanceof Image) {
            $format = $this->image->mime;
        }

        $this->format = $format ? $format : 'jpg';

        return $this;
    }
1034760
public function getTime($raw = false, $format = null, $name = self::DEFAULT_NAME)
    {
        $elapsed = $this->end_time[$name] - $this->start_time[$name];
        return $raw ? $elapsed : self::readableElapsedTime($elapsed, $format, $name);
    }
308046
public static function parseDate($date, $format){
        if( $format == "d/m/Y" ) return self::parseDate1($date, $format);
        if( $format == "Y-m-d" ) return self::parseDate2($date, $format);
        return null;
    }
992176
protected function getResourceName($name, $format = true)
    {
        // we assume its already formatted to resource name
        if ($name && $format === false) {
            return $name;
        }

        $name = isset($name) ? $name : $this->resource;

        $this->resource = lcfirst(str_singular(class_basename($name)));
        $this->resourceLowerCase = strtolower($name);

        return $this->resource;
    }
1170169
public static function resolve($format, $requestName)
    {
        if (! array_key_exists($requestName, self::$variants)) {
            throw new RequestNotSupportedException(sprintf(
                'Request [%s] not supported here.', $requestName
            ));
        }

        if (! array_key_exists($format, self::$variants[$requestName])) {
            throw new FormatNotSupportedException(sprintf(
                'Format [%s] not supported for request [%s].', $format, $requestName
            ));
        }

        return self::$variants[$requestName][$format];
    }
422387
public function getCreateDate($format = null)
    {
        $node = $this->getFirst('//epp:epp/epp:response/epp:resData/contact:creData/contact:crDate');
        if ($format === null) {
            return $node->nodeValue;
        }

        return date_create_from_format($format, $node->nodeValue);
    }
462831
public function format($format = null)
    {
        if (!$format) {
            $format = $this->getFormat();
        }

        return parent::format($format ?: static::$toStringFormat);
    }
375643
public function getUpdateDate($format = null)
    {
        $node = $this->getFirst('//epp:epp/epp:response/epp:resData/host:infData/host:upDate');
        if ($node === null) {
            return null;
        }

        if ($format === null) {
            return $node->nodeValue;
        }

        return date_create_from_format($format, $node->nodeValue);
    }
1305573
public function field($name)
    {
        if (!isset($this->_fields[$name])) {
            return null;
        }

        return $this->_fields[$name];
    }