PHP 클래스 Knp\Bundle\KnpBundlesBundle\Entity\Bundle

파일 보기 프로젝트 열기: KnpLabs/KnpBundles 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$activities Doctrine\Common\Collections\Collection
$canonicalConfig The bundle canonical configuration yaml extracted from bundle's repo
$composerName Composer name
$contributors Doctrine\Common\Collections\Collection Developers who contributed to the Repo
$createdAt Repo creation date (on this website)
$description Repo description
$favorers Doctrine\Common\Collections\Collection Developers who has favorited the bundle
$homepage The website url, if any
$id
$indexedAt Last indexing time.
$isFork True if the Repo is a fork
$keywords Doctrine\Common\Collections\Collection Bundle keywords
$lastCheckAt Date of the last successful GitHub check
$lastCommitAt Date of the last Git commit
$lastTweetedAt Date when bundle was tweeted from knplabs account.
$license The bundle license text extracted from source code
$licenseType The bundle license type extracted from composer.json
$name Repo name, e.g. "MarkdownBundle" Like in GitHub, this name is not unique
$nbFavorers
$nbFollowers Number of GitHub followers
$nbForks Number of GitHub forks
$nbRecommenders
$owner Doctrine\Common\Collections\Collection Owner of the bundle
$ownerName The name of the owner who owns this bundle This value is redundant with the name of the referenced Owner, for performance reasons
$ownerType The type of the owner who owns this bundle This value is redundant with the class of the referenced Owner, for performance reasons
$readme The bundle readme text extracted from source code
$recommenders Doctrine\Common\Collections\Collection Developers recommending the bundle
$score Internal score of the Repo, based on several indicators Defines the Repo position in lists and searches
$scoreDetails array Latest score's details
$scores Doctrine\Common\Collections\Collection Internal scores
$state Status of bundle
$travisCiBuildStatus Travis Ci last build status
$trend1 Trend over the last day. Max is better.
$updatedAt Repo update date (on this website)
$usesTravisCi True if the Repo uses Travis CI
$versionsHistory Bundle versions history

공개 메소드들

메소드 설명
__construct ( null | string $fullName = null )
__toString ( )
addActivity ( Activity $activity )
addFavorer ( Developer $developer )
addKeyword ( Keyword $keyword )
addRecommender ( Developer $developer )
addScoreDetail ( $name, $value )
countKeywords ( ) : integer
fromArray ( array $data )
getActivities ( null | integer $page = null, integer $limit = 15 ) : Traversable Get activities
getCanonicalConfig ( ) : string Get canonicalConfig
getClass ( )
getComposerName ( ) : string Get Composer name
getContributorNames ( )
getContributors ( null | integer $page = null, integer $limit = 20 ) : Traversable Get contributors
getCreatedAt ( ) : DateTime Get the bundle creation date
getDaysSinceLastCommit ( ) : integer Returns the number of days elapsed since the last commit on the master branch
getDescription ( null | integer $cutAfter = null ) : string Get description
getFavorers ( null | integer $page = null, integer $limit = 20 ) : Traversable
getFullName ( ) : string Get full name, including ownerName
getGitHubUrl ( ) : string Get the GitHub url of this bundle
getGitUrl ( ) : string Get the Git repo url
getHomepage ( ) : string Get homepage
getId ( ) : string Get id
getIndexedAt ( ) : DateTime Get indexedAt
getIsFork ( ) : boolean Get isFork
getKeywords ( ) : Doctrine\Common\Collections\Collection
getLastCheckAt ( ) : DateTime Get the date of last check
getLastCommitAt ( ) : DateTime Get the date of the last commit
getLastTweetedAt ( ) : null | DateTime Get lastTweetedAt
getLatestActivities ( $type = Activity::ACTIVITY_TYPE_COMMIT )
getLatestScoreDetails ( )
getLicense ( ) : string Get license data
getLicenseType ( ) : string Get license type
getName ( ) : string Get name
getNbContributors ( ) : integer Get the number of contributors
getNbFavorers ( )
getNbFollowers ( ) : integer Get followers
getNbForks ( ) : integer Get forks
getNbRecommenders ( )
getOwner ( ) : Owner
getOwnerName ( ) : string Get ownername
getOwnerType ( ) : string
getPackagistUrl ( ) : string Get the Packagist url of this repo
getReadme ( ) : string Get readme
getRecommenders ( null | integer $page = null, integer $limit = 20 ) : Traversable
getScore ( ) : integer Get score
getScoreDetails ( ) Returns details about the bundle's score
getScores ( integer $limit = null ) : array Get all historical scores indexed by date
getShortName ( ) : string Get the first part of the name, without Bundle
getState ( ) : string Get the status of bundle
getStatusHash ( ) : string Unique string which shows current status of the bundle
getSymfonyVersions ( ) : array | null Get required versions of Symfony from bundle Versions History
getTravisCiBuildStatus ( ) : string Get Travis Ci last build status
getTravisUrl ( ) : string Get the Travis Ci url of this bundle
getTrend1 ( ) : integer Get the trend over the last day
getUpdatedAt ( ) : DateTime Get the bundle update date
getUsesTravisCi ( ) : boolean Get whether bundle uses Travis CI
getVersionsHistory ( ) : array Get bundle versions history
hasChanges ( ) : boolean
hasKeyword ( Keyword $keyword ) : boolean
isInitialized ( )
isOwnerOrContributor ( Owner $owner ) : boolean
markAsCreated ( )
markAsUpdated ( )
recalculateScore ( ) Calculate the score of this bundle based on several factors.
removeFavorer ( Developer $developer )
removeRecommender ( Developer $developer )
setCanonicalConfig ( $canonicalConfig ) Set canonicalConfig
setComposerName ( $name ) Set Composer name
setContributors ( array $contributors ) Set contributors
setCreatedAt ( DateTime $createdAt ) Set the bundle creation date
setDescription ( string $description ) Set description
setHomepage ( string $homepage ) Set homepage
setIndexedAt ( DateTime $indexedAt ) Set indexedAt
setIsFork ( boolean $isFork ) Set isFork
setLastCheckAt ( DateTime $lastCheckAt ) Set the date of last check
setLastCommitAt ( DateTime $lastCommitAt ) Set lastCommitAt
setLastTweetedAt ( DateTime $lastTweetedAt ) Set lastTweetedAt
setLicense ( string $license ) Set license data
setLicenseType ( string $license ) Set license type
setName ( $name ) Set name
setNbFavorers ( integer $nbFavorers )
setNbFollowers ( integer $nbFollowers ) Set followers
setNbForks ( integer $nbForks ) Set forks
setNbRecommenders ( integer $nbRecommenders )
setOwner ( Owner $owner )
setOwnerName ( string $ownerName ) Set ownerName
setReadme ( string $readme ) Set readme
setScore ( integer $score ) Set score
setScoreDetails ( array $details )
setState ( $state ) Set status of bundle
setTravisCiBuildStatus ( string $status ) Set Travis Ci last build status
setUsesTravisCi ( boolean $uses ) Set whether bundle uses Travis CI
setVersionsHistory ( array $versions ) Set bundle versions history
toBigArray ( ) : array Get an array representing the Repo
toSmallArray ( )
updateScore ( integer $points = 1 ) Updates bundle score with given amount of points

메소드 상세

__construct() 공개 메소드

public __construct ( null | string $fullName = null )
$fullName null | string

__toString() 공개 메소드

public __toString ( )

addActivity() 공개 메소드

public addActivity ( Activity $activity )
$activity Activity

addFavorer() 공개 메소드

public addFavorer ( Developer $developer )
$developer Developer

addKeyword() 공개 메소드

public addKeyword ( Keyword $keyword )
$keyword Keyword

addRecommender() 공개 메소드

public addRecommender ( Developer $developer )
$developer Developer

addScoreDetail() 공개 메소드

public addScoreDetail ( $name, $value )

countKeywords() 공개 메소드

public countKeywords ( ) : integer
리턴 integer Total nb of keywords for this bundle

fromArray() 공개 메소드

public fromArray ( array $data )
$data array

getActivities() 공개 메소드

Get activities
public getActivities ( null | integer $page = null, integer $limit = 15 ) : Traversable
$page null | integer
$limit integer
리턴 Traversable

getCanonicalConfig() 공개 메소드

Get canonicalConfig
public getCanonicalConfig ( ) : string
리턴 string

getClass() 공개 메소드

public getClass ( )

getComposerName() 공개 메소드

Get Composer name
public getComposerName ( ) : string
리턴 string

getContributorNames() 공개 메소드

public getContributorNames ( )

getContributors() 공개 메소드

Get contributors
public getContributors ( null | integer $page = null, integer $limit = 20 ) : Traversable
$page null | integer
$limit integer
리턴 Traversable

getCreatedAt() 공개 메소드

Get the bundle creation date
public getCreatedAt ( ) : DateTime
리턴 DateTime

getDaysSinceLastCommit() 공개 메소드

Returns the number of days elapsed since the last commit on the master branch
public getDaysSinceLastCommit ( ) : integer
리턴 integer

getDescription() 공개 메소드

Get description
public getDescription ( null | integer $cutAfter = null ) : string
$cutAfter null | integer
리턴 string

getFavorers() 공개 메소드

public getFavorers ( null | integer $page = null, integer $limit = 20 ) : Traversable
$page null | integer
$limit integer
리턴 Traversable

getFullName() 공개 메소드

Get full name, including ownerName
public getFullName ( ) : string
리턴 string

getGitHubUrl() 공개 메소드

Get the GitHub url of this bundle
public getGitHubUrl ( ) : string
리턴 string

getGitUrl() 공개 메소드

Get the Git repo url
public getGitUrl ( ) : string
리턴 string

getHomepage() 공개 메소드

Get homepage
public getHomepage ( ) : string
리턴 string

getId() 공개 메소드

Get id
public getId ( ) : string
리턴 string

getIndexedAt() 공개 메소드

Get indexedAt
public getIndexedAt ( ) : DateTime
리턴 DateTime

getIsFork() 공개 메소드

Get isFork
public getIsFork ( ) : boolean
리턴 boolean

getKeywords() 공개 메소드

public getKeywords ( ) : Doctrine\Common\Collections\Collection
리턴 Doctrine\Common\Collections\Collection

getLastCheckAt() 공개 메소드

Get the date of last check
public getLastCheckAt ( ) : DateTime
리턴 DateTime

getLastCommitAt() 공개 메소드

Get the date of the last commit
public getLastCommitAt ( ) : DateTime
리턴 DateTime

getLastTweetedAt() 공개 메소드

Get lastTweetedAt
public getLastTweetedAt ( ) : null | DateTime
리턴 null | DateTime

getLatestActivities() 공개 메소드

public getLatestActivities ( $type = Activity::ACTIVITY_TYPE_COMMIT )

getLatestScoreDetails() 공개 메소드

getLicense() 공개 메소드

Get license data
public getLicense ( ) : string
리턴 string

getLicenseType() 공개 메소드

Get license type
public getLicenseType ( ) : string
리턴 string

getName() 공개 메소드

Get name
public getName ( ) : string
리턴 string

getNbContributors() 공개 메소드

Get the number of contributors
public getNbContributors ( ) : integer
리턴 integer

getNbFavorers() 공개 메소드

public getNbFavorers ( )

getNbFollowers() 공개 메소드

Get followers
public getNbFollowers ( ) : integer
리턴 integer

getNbForks() 공개 메소드

Get forks
public getNbForks ( ) : integer
리턴 integer

getNbRecommenders() 공개 메소드

public getNbRecommenders ( )

getOwner() 공개 메소드

public getOwner ( ) : Owner
리턴 Owner

getOwnerName() 공개 메소드

Get ownername
public getOwnerName ( ) : string
리턴 string

getOwnerType() 공개 메소드

public getOwnerType ( ) : string
리턴 string

getPackagistUrl() 공개 메소드

Get the Packagist url of this repo
public getPackagistUrl ( ) : string
리턴 string

getReadme() 공개 메소드

Get readme
public getReadme ( ) : string
리턴 string

getRecommenders() 공개 메소드

public getRecommenders ( null | integer $page = null, integer $limit = 20 ) : Traversable
$page null | integer
$limit integer
리턴 Traversable

getScore() 공개 메소드

Get score
public getScore ( ) : integer
리턴 integer

getScoreDetails() 공개 메소드

Returns details about the bundle's score
public getScoreDetails ( )

getScores() 공개 메소드

Get all historical scores indexed by date
public getScores ( integer $limit = null ) : array
$limit integer
리턴 array

getShortName() 공개 메소드

Get the first part of the name, without Bundle
public getShortName ( ) : string
리턴 string

getState() 공개 메소드

Get the status of bundle
public getState ( ) : string
리턴 string

getStatusHash() 공개 메소드

Unique string which shows current status of the bundle
public getStatusHash ( ) : string
리턴 string

getSymfonyVersions() 공개 메소드

Get required versions of Symfony from bundle Versions History
public getSymfonyVersions ( ) : array | null
리턴 array | null

getTravisCiBuildStatus() 공개 메소드

Get Travis Ci last build status
public getTravisCiBuildStatus ( ) : string
리턴 string

getTravisUrl() 공개 메소드

Get the Travis Ci url of this bundle
public getTravisUrl ( ) : string
리턴 string

getTrend1() 공개 메소드

Get the trend over the last day
public getTrend1 ( ) : integer
리턴 integer

getUpdatedAt() 공개 메소드

Get the bundle update date
public getUpdatedAt ( ) : DateTime
리턴 DateTime

getUsesTravisCi() 공개 메소드

Get whether bundle uses Travis CI
public getUsesTravisCi ( ) : boolean
리턴 boolean

getVersionsHistory() 공개 메소드

Get bundle versions history
public getVersionsHistory ( ) : array
리턴 array

hasChanges() 공개 메소드

public hasChanges ( ) : boolean
리턴 boolean

hasKeyword() 공개 메소드

public hasKeyword ( Keyword $keyword ) : boolean
$keyword Keyword
리턴 boolean

isInitialized() 공개 메소드

public isInitialized ( )

isOwnerOrContributor() 공개 메소드

public isOwnerOrContributor ( Owner $owner ) : boolean
$owner Owner
리턴 boolean

markAsCreated() 공개 메소드

public markAsCreated ( )

markAsUpdated() 공개 메소드

public markAsUpdated ( )

recalculateScore() 공개 메소드

The score is used as the default sort field in many places. #TODO discuss me, improve me
public recalculateScore ( )

removeFavorer() 공개 메소드

public removeFavorer ( Developer $developer )
$developer Developer

removeRecommender() 공개 메소드

public removeRecommender ( Developer $developer )
$developer Developer

setCanonicalConfig() 공개 메소드

Set canonicalConfig
public setCanonicalConfig ( $canonicalConfig )
$canonicalConfig

setComposerName() 공개 메소드

Set Composer name
public setComposerName ( $name )

setContributors() 공개 메소드

Set contributors
public setContributors ( array $contributors )
$contributors array

setCreatedAt() 공개 메소드

Set the bundle creation date
public setCreatedAt ( DateTime $createdAt )
$createdAt DateTime

setDescription() 공개 메소드

Set description
public setDescription ( string $description )
$description string

setHomepage() 공개 메소드

Set homepage
public setHomepage ( string $homepage )
$homepage string

setIndexedAt() 공개 메소드

Set indexedAt
public setIndexedAt ( DateTime $indexedAt )
$indexedAt DateTime

setIsFork() 공개 메소드

Set isFork
public setIsFork ( boolean $isFork )
$isFork boolean

setLastCheckAt() 공개 메소드

Set the date of last check
public setLastCheckAt ( DateTime $lastCheckAt )
$lastCheckAt DateTime

setLastCommitAt() 공개 메소드

Set lastCommitAt
public setLastCommitAt ( DateTime $lastCommitAt )
$lastCommitAt DateTime

setLastTweetedAt() 공개 메소드

Set lastTweetedAt
public setLastTweetedAt ( DateTime $lastTweetedAt )
$lastTweetedAt DateTime

setLicense() 공개 메소드

Set license data
public setLicense ( string $license )
$license string

setLicenseType() 공개 메소드

Set license type
public setLicenseType ( string $license )
$license string

setName() 공개 메소드

Set name
public setName ( $name )

setNbFavorers() 공개 메소드

public setNbFavorers ( integer $nbFavorers )
$nbFavorers integer

setNbFollowers() 공개 메소드

Set followers
public setNbFollowers ( integer $nbFollowers )
$nbFollowers integer

setNbForks() 공개 메소드

Set forks
public setNbForks ( integer $nbForks )
$nbForks integer

setNbRecommenders() 공개 메소드

public setNbRecommenders ( integer $nbRecommenders )
$nbRecommenders integer

setOwner() 공개 메소드

public setOwner ( Owner $owner )
$owner Owner

setOwnerName() 공개 메소드

Set ownerName
public setOwnerName ( string $ownerName )
$ownerName string

setReadme() 공개 메소드

Set readme
public setReadme ( string $readme )
$readme string

setScore() 공개 메소드

Set score
public setScore ( integer $score )
$score integer

setScoreDetails() 공개 메소드

public setScoreDetails ( array $details )
$details array

setState() 공개 메소드

Set status of bundle
public setState ( $state )

setTravisCiBuildStatus() 공개 메소드

Set Travis Ci last build status
public setTravisCiBuildStatus ( string $status )
$status string

setUsesTravisCi() 공개 메소드

Set whether bundle uses Travis CI
public setUsesTravisCi ( boolean $uses )
$uses boolean

setVersionsHistory() 공개 메소드

Set bundle versions history
public setVersionsHistory ( array $versions )
$versions array

toBigArray() 공개 메소드

Get an array representing the Repo
public toBigArray ( ) : array
리턴 array

toSmallArray() 공개 메소드

public toSmallArray ( )

updateScore() 공개 메소드

Updates bundle score with given amount of points
public updateScore ( integer $points = 1 )
$points integer

프로퍼티 상세

$activities 보호되어 있는 프로퍼티

protected Collection,Doctrine\Common\Collections $activities
리턴 Doctrine\Common\Collections\Collection

$canonicalConfig 보호되어 있는 프로퍼티

The bundle canonical configuration yaml extracted from bundle's repo
protected $canonicalConfig

$composerName 보호되어 있는 프로퍼티

Composer name
protected $composerName

$contributors 보호되어 있는 프로퍼티

Developers who contributed to the Repo
protected Collection,Doctrine\Common\Collections $contributors
리턴 Doctrine\Common\Collections\Collection

$createdAt 보호되어 있는 프로퍼티

Repo creation date (on this website)
protected $createdAt

$description 보호되어 있는 프로퍼티

Repo description
protected $description

$favorers 보호되어 있는 프로퍼티

Developers who has favorited the bundle
protected Collection,Doctrine\Common\Collections $favorers
리턴 Doctrine\Common\Collections\Collection

$homepage 보호되어 있는 프로퍼티

The website url, if any
protected $homepage

$id 보호되어 있는 프로퍼티

protected $id

$indexedAt 보호되어 있는 프로퍼티

Last indexing time.
protected $indexedAt

$isFork 보호되어 있는 프로퍼티

True if the Repo is a fork
protected $isFork

$keywords 보호되어 있는 프로퍼티

Bundle keywords
protected Collection,Doctrine\Common\Collections $keywords
리턴 Doctrine\Common\Collections\Collection

$lastCheckAt 보호되어 있는 프로퍼티

Date of the last successful GitHub check
protected $lastCheckAt

$lastCommitAt 보호되어 있는 프로퍼티

Date of the last Git commit
protected $lastCommitAt

$lastTweetedAt 보호되어 있는 프로퍼티

Date when bundle was tweeted from knplabs account.
protected $lastTweetedAt

$license 보호되어 있는 프로퍼티

The bundle license text extracted from source code
protected $license

$licenseType 보호되어 있는 프로퍼티

The bundle license type extracted from composer.json
protected $licenseType

$name 보호되어 있는 프로퍼티

Repo name, e.g. "MarkdownBundle" Like in GitHub, this name is not unique
protected $name

$nbFavorers 보호되어 있는 프로퍼티

protected $nbFavorers

$nbFollowers 보호되어 있는 프로퍼티

Number of GitHub followers
protected $nbFollowers

$nbForks 보호되어 있는 프로퍼티

Number of GitHub forks
protected $nbForks

$nbRecommenders 보호되어 있는 프로퍼티

protected $nbRecommenders

$owner 보호되어 있는 프로퍼티

Owner of the bundle
protected Collection,Doctrine\Common\Collections $owner
리턴 Doctrine\Common\Collections\Collection

$ownerName 보호되어 있는 프로퍼티

The name of the owner who owns this bundle This value is redundant with the name of the referenced Owner, for performance reasons
protected $ownerName

$ownerType 보호되어 있는 프로퍼티

The type of the owner who owns this bundle This value is redundant with the class of the referenced Owner, for performance reasons
protected $ownerType

$readme 보호되어 있는 프로퍼티

The bundle readme text extracted from source code
protected $readme

$recommenders 보호되어 있는 프로퍼티

Developers recommending the bundle
protected Collection,Doctrine\Common\Collections $recommenders
리턴 Doctrine\Common\Collections\Collection

$score 보호되어 있는 프로퍼티

Internal score of the Repo, based on several indicators Defines the Repo position in lists and searches
protected $score

$scoreDetails 보호되어 있는 프로퍼티

Latest score's details
protected array $scoreDetails
리턴 array

$scores 보호되어 있는 프로퍼티

Internal scores
protected Collection,Doctrine\Common\Collections $scores
리턴 Doctrine\Common\Collections\Collection

$state 보호되어 있는 프로퍼티

Status of bundle
protected $state

$travisCiBuildStatus 보호되어 있는 프로퍼티

Travis Ci last build status
protected $travisCiBuildStatus

$trend1 보호되어 있는 프로퍼티

Trend over the last day. Max is better.
protected $trend1

$updatedAt 보호되어 있는 프로퍼티

Repo update date (on this website)
protected $updatedAt

$usesTravisCi 보호되어 있는 프로퍼티

True if the Repo uses Travis CI
protected $usesTravisCi

$versionsHistory 보호되어 있는 프로퍼티

Bundle versions history
protected $versionsHistory