本文整理匯總了PHP中Repository::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Repository::__construct方法的具體用法?PHP Repository::__construct怎麽用?PHP Repository::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Repository
的用法示例。
在下文中一共展示了Repository::__construct方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct(\Nette\Database\Context $database, ServerRepository $serverRepo, \ServerCommander $serverComm, UserRepository $userRepo, \FileModel $fileModel, \UUIDModel $uuidModel)
{
parent::__construct($database);
$this->serverRepo = $serverRepo;
$this->serverComm = $serverComm;
$this->userRepo = $userRepo;
$this->fileModel = $fileModel;
$this->uuidModel = $uuidModel;
}
示例2: __construct
public function __construct($row = array())
{
parent::__construct($row = array());
$this->list = array();
$this->total = 0;
/*
$this->id = (int)(isset($row['id']) ? $row['id'] : 0);
$this->username = (isset($row['username']) ? $row['username'] : "");
$this->password = (isset($row['password']) ? $row['password'] : "");
*/
}
示例3:
/**
* Class constructor
*
*/
function __construct($repository, $triggered_by_handler = false)
{
parent::__construct();
// check if we have neccessary resources
if (instance_of($repository, 'Repository')) {
$this->active_repository = $repository;
$this->active_project = Projects::findById($repository->getProjectId());
}
// if
$this->executable_path = with_slash(ConfigOptions::getValue('source_svn_path'));
$config_dir = ConfigOptions::getValue('source_svn_config_dir');
$this->config_dir = is_null($config_dir) ? '' : '--config-dir ' . $config_dir;
$this->stderr2stdout = ConfigOptions::getValue('source_svn_use_output_redirect') == true ? "2>&1" : "";
$this->trust_server_certificate = ConfigOptions::getValue('source_svn_trust_server_cert') == true ? '--trust-server-cert' : '';
$this->triggerred_by_handler = $triggered_by_handler;
}
示例4: __construct
public function __construct()
{
parent::__construct();
}
示例5: __construct
public function __construct(\Nette\Database\Context $context)
{
parent::__construct($this->_name, $context);
}
示例6: __construct
public function __construct(\Nette\Database\Context $connection)
{
parent::__construct($connection);
$this->tableName = "topics";
}
示例7: __construct
public function __construct()
{
parent::__construct("todoentry");
}
示例8: __construct
public function __construct($row = array())
{
parent::__construct($row);
}
示例9: __construct
/**
* @inherit
*/
public function __construct($name, Config $config)
{
parent::__construct($name, $config);
$this->deleteEmptyDirs = $config->getOption('delete_empty_dirs') === true;
}
示例10: __construct
/**
* Initialise les informations sur le depot.
* @param Webos $webos Le webos.
*/
public function __construct(\lib\Webos $webos)
{
//On appelle le constructeur parent
parent::__construct($webos, '/etc/apt/');
}