Свойство | Тип | Описание | |
---|---|---|---|
$collection | |||
$db | ADODB_mysqli | Database connection instance |
Метод | Описание | |
---|---|---|
__construct ( ADODB_mysqli $db ) | Constructor | |
all ( boolean $ignoreCache = false, array $criteria = null ) : |
Gets all projects | |
checkPermission ( string $projectId, array $criteria ) : boolean | mixed | Checks if user has permissions to project in environment or account scope | |
findByKey ( string $key = null, array $criteria = null, $ignoreCache = false ) : |
Finds projects by key It searches by name or billing number | |
get ( string $projectId, boolean $ignoreCache = false, array $criteria = null ) : |
Gets a specified project | |
getAccountProjects ( integer $accountId, string $query = null ) : |
Gets available projects for account scope | |
getFarmsList ( string $projectId ) : array | Get the list of the farms which are assigned to specified project | |
getUsedInEnvironment ( integer $envId ) : array | Gets the list of projects within environment |
Метод | Описание | |
---|---|---|
parseFindCriteria ( array $criteria, string &$join, string &$where ) | Parses common criteria |
public __construct ( ADODB_mysqli $db ) | ||
$db | ADODB_mysqli | Database connection instance |
public all ( boolean $ignoreCache = false, array $criteria = null ) : |
||
$ignoreCache | boolean | optional Should it ignore cache or not |
$criteria | array | optional Search criteria ['envId' => '', 'accountId' => '', 'accountId' => ''] |
Результат | Returns collection of all ProjectEntity objects |
public findByKey ( string $key = null, array $criteria = null, $ignoreCache = false ) : |
||
$key | string | optional Search key |
$criteria | array | optional Search criteria ['envId' => '', 'accountId' => '', 'accountId' => ''] |
Результат | Returns collection of the ProjectEntity objects |
public get ( string $projectId, boolean $ignoreCache = false, array $criteria = null ) : |
||
$projectId | string | The identifier of the project |
$ignoreCache | boolean | optional Should it ignore cache or not |
$criteria | array | optional Search criteria ['envId' => '', 'accountId' => ''] |
Результат | Returns the ProjectEntity on success or null if it does not exist. |
public getAccountProjects ( integer $accountId, string $query = null ) : |
||
$accountId | integer | Current user object |
$query | string | optional Search criteria |
Результат |
public getFarmsList ( string $projectId ) : array | ||
$projectId | string | The UUID of the project |
Результат | array | Returns the array looks like [farm_id => name] |
public getUsedInEnvironment ( integer $envId ) : array | ||
$envId | integer | Identifier of the Environment |
Результат | array | Returns array of the ProjectEntity objects |
protected ArrayCollection,Scalr\Model\Collections $collection | ||
Результат |