Back to LegacyModelLoaderTrait class

Method _createFileName

protected static string
_createFileName
(mixed $type, mixed $parts = array())
Create the filename for a resource
Parameters
  • string $type The resource type to create the filename for.
  • array $parts An associative array of filename information.
Returns
  • string The filename
Since
  • 3.0
Deprecated
  • 5.0

Method _createFileName - Source code

/**
 * Create the filename for a resource
 *
 * @param   string  $type   The resource type to create the filename for.
 * @param   array   $parts  An associative array of filename information.
 *
 * @return  string  The filename
 *
 * @since       3.0
 * @deprecated  5.0 See getInstance
 */
protected static function _createFileName($type, $parts = array())
{
    return $type === 'model' ? strtolower($parts['name']) . '.php' : '';
}