Property | Type | Description | |
---|---|---|---|
$em | |||
$random |
Method | Description | |
---|---|---|
__construct ( |
||
findArticleByWebcode ( string $webcode ) : Newscoop\Entity\Article | Find article by webcode | |
getArticleWebcode ( |
Get article webcode | |
setArticleWebcode ( |
Set article webcode |
Method | Description | |
---|---|---|
generateWebcode ( ) | Generate webcode | |
getRepository ( ) : Doctrine\ORM\EntityRepository | Get webcode repository | |
isUnique ( string $webcode ) : boolean | Test if webcode is unique |
public __construct ( |
||
$em | ||
$random |
public findArticleByWebcode ( string $webcode ) : Newscoop\Entity\Article | ||
$webcode | string | |
return | Newscoop\Entity\Article |
public getArticleWebcode ( |
||
$article | ||
return | string |
public setArticleWebcode ( |
||
$article | ||
$webcode | string | |
return | void |