本文整理汇总了PHP中FileManager::FileManager方法的典型用法代码示例。如果您正苦于以下问题:PHP FileManager::FileManager方法的具体用法?PHP FileManager::FileManager怎么用?PHP FileManager::FileManager使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileManager
的用法示例。
在下文中一共展示了FileManager::FileManager方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ConferenceFileManager
/**
* Constructor.
* Create a manager for handling conference file uploads.
* @param $conferenceId int
*/
function ConferenceFileManager(&$conference)
{
$this->conferenceId = $conference->getId();
$this->conference =& $conference;
$this->filesDir = Config::getVar('files', 'files_dir') . '/conferences/' . $this->conferenceId . '/';
parent::FileManager();
}
示例2: JournalFileManager
/**
* Constructor.
* Create a manager for handling journal file uploads.
* @param $journalId int
*/
function JournalFileManager(&$journal)
{
$this->journalId = $journal->getId();
$this->journal =& $journal;
$this->filesDir = Config::getVar('files', 'files_dir') . '/journals/' . $this->journalId . '/';
parent::FileManager();
}
示例3: IssueFileManager
/**
* Constructor.
* Create a manager for handling issue file uploads.
* @param $issueId int
*/
function IssueFileManager($issueId)
{
$issueDao =& DAORegistry::getDAO('IssueDAO');
$issue =& $issueDao->getIssueById($issueId);
assert($issue);
$this->setIssueId($issueId);
$this->setFilesDir(Config::getVar('files', 'files_dir') . '/journals/' . $issue->getJournalId() . '/issues/' . $issueId . '/');
parent::FileManager();
}
示例4: ArticleFileManager
/**
* Constructor.
* Create a manager for handling article file uploads.
* @param $articleId int
*/
function ArticleFileManager($articleId)
{
$this->articleId = $articleId;
$articleDao = DAORegistry::getDAO('ArticleDAO');
$this->article = $articleDao->getById($articleId);
$journalId = $this->article->getJournalId();
$this->filesDir = Config::getVar('files', 'files_dir') . '/journals/' . $journalId . '/articles/' . $articleId . '/';
parent::FileManager();
}
示例5: LibraryFileManager
/**
* Constructor
* @param $pressId int
*/
function LibraryFileManager($pressId)
{
parent::FileManager();
$this->filesDir = Config::getVar('files', 'files_dir') . '/presses/' . $pressId . '/library/';
$this->pressId = $pressId;
}
示例6: PrivateFileManager
/**
* Constructor
*/
function PrivateFileManager()
{
parent::FileManager();
$this->filesDir = $this->getBasePath();
}
示例7: PKPPublicFileManager
/**
* Constructor
*/
function PKPPublicFileManager()
{
parent::FileManager();
}
示例8: PKPTemporaryFileManager
/**
* Constructor
*/
function PKPTemporaryFileManager()
{
parent::FileManager();
$this->filesDir = Config::getVar('files', 'files_dir') . '/temp/';
$this->_performPeriodicCleanup();
}
示例9: MonographFileManager
/**
* Constructor.
*/
function MonographFileManager()
{
parent::FileManager();
}
示例10: AboutFileManager
/**
* Constructor
*/
function AboutFileManager()
{
parent::FileManager();
$this->filesDir = str_replace('classes', 'public/about/', dirname(realpath(__DIR__)));
}
示例11: PrivateFileManager
/**
* Constructor
*/
function PrivateFileManager()
{
parent::FileManager();
}
示例12: ImageFileManager
/**
* constructor
*/
function ImageFileManager()
{
parent::FileManager();
parent::setAllowedMimeTypes(array("image/gif", "image/jpeg", "image/pjpeg", "image/jpg", "image/png"));
}