PHP Class hiqdev\assetpackagist\models\AssetPackage

Inheritance: extends yii\base\Object
Mostra file Open project: hiqdev/asset-packagist Class Usage Examples

Protected Properties

Property Type Description
$_commonComposer Composer\Composer
$_composer Composer\Composer
$_hash
$_io Composer\IO\NullIO
$_name
$_registry Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository | hiqdev\assetpackagist\registry\BowerRegistry | hiqdev\assetpackagist\registry\NpmRegistry
$_releases array
$_saved
$_type
$_updateTime UNIX Epoch timestamp of the latest package update

Public Methods

Method Description
__construct ( $type, $name, $config = [] )
__sleep ( ) : array
buildFullName ( $type, $name )
canAutoUpdate ( ) : boolean Whether tha package should be auth-updated (if it is older than 1 day).
canBeUpdated ( ) : boolean Package can be updated not more often than once in 10 min.
checkName ( $name )
checkType ( $type )
findOne ( string $type, string $name ) : static | null findOne.
fromFullName ( string $full ) : static
getCommonComposer ( ) : Composer\Composer
getComposer ( ) : Composer\Composer
getFullName ( )
getHash ( )
getIO ( )
getName ( )
getNormalName ( )
getRegistry ( )
getRelease ( $version ) : array
getReleases ( ) : array
getSaved ( )
getStorage ( ) : Storage
getType ( )
getUpdateTime ( ) : integer | null Returns the latest update time (UNIX Epoch).
load ( )
normalizeName ( $name )
prepareReleases ( Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository $repository ) : array
prepareRequire ( array $links ) : array Prepares array of requires: name => constraint.
prepareUid ( $version )
setComposer ( $value )
splitFullName ( $full )
update ( )

Method Details

__construct() public method

public __construct ( $type, $name, $config = [] )

__sleep() public method

public __sleep ( ) : array
return array

buildFullName() public static method

public static buildFullName ( $type, $name )

canAutoUpdate() public method

Whether tha package should be auth-updated (if it is older than 1 day).
public canAutoUpdate ( ) : boolean
return boolean

canBeUpdated() public method

Package can be updated not more often than once in 10 min.
public canBeUpdated ( ) : boolean
return boolean

checkName() public method

public checkName ( $name )

checkType() public method

public checkType ( $type )

findOne() public static method

findOne.
public static findOne ( string $type, string $name ) : static | null
$type string
$name string
return static | null

fromFullName() public static method

public static fromFullName ( string $full ) : static
$full string package name
return static

getCommonComposer() public static method

public static getCommonComposer ( ) : Composer\Composer
return Composer\Composer

getComposer() public method

public getComposer ( ) : Composer\Composer
return Composer\Composer

getFullName() public method

public getFullName ( )

getHash() public method

public getHash ( )

getIO() public method

public getIO ( )

getName() public method

public getName ( )

getNormalName() public method

public getNormalName ( )

getRegistry() public method

public getRegistry ( )

getRelease() public method

public getRelease ( $version ) : array
$version
return array

getReleases() public method

public getReleases ( ) : array
return array

getSaved() public method

public getSaved ( )

getStorage() public method

public getStorage ( ) : Storage
return hiqdev\assetpackagist\components\Storage

getType() public method

public getType ( )

getUpdateTime() public method

Returns the latest update time (UNIX Epoch).
public getUpdateTime ( ) : integer | null
return integer | null

load() public method

public load ( )

normalizeName() public static method

public static normalizeName ( $name )

prepareReleases() public method

public prepareReleases ( Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository $repository ) : array
$repository Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository
return array

prepareRequire() public method

Prepares array of requires: name => constraint.
public prepareRequire ( array $links ) : array
$links array
return array

prepareUid() public method

public prepareUid ( $version )

setComposer() public method

public setComposer ( $value )

splitFullName() public static method

public static splitFullName ( $full )

update() public method

public update ( )

Property Details

$_commonComposer protected_oe static_oe property

protected static Composer,Composer $_commonComposer
return Composer\Composer

$_composer protected_oe property

protected Composer,Composer $_composer
return Composer\Composer

$_hash protected_oe property

protected $_hash

$_io protected_oe property

protected NullIO,Composer\IO $_io
return Composer\IO\NullIO

$_name protected_oe property

protected $_name

$_registry protected_oe property

protected AssetVcsRepository,Fxp\Composer\AssetPlugin\Repository|BowerRegistry,hiqdev\assetpackagist\registry|NpmRegistry,hiqdev\assetpackagist\registry $_registry
return Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository | hiqdev\assetpackagist\registry\BowerRegistry | hiqdev\assetpackagist\registry\NpmRegistry

$_releases protected_oe property

protected array $_releases
return array

$_saved protected_oe property

protected $_saved

$_type protected_oe property

protected $_type

$_updateTime protected_oe property

UNIX Epoch timestamp of the latest package update
protected $_updateTime