本文整理汇总了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/');
}