本文整理汇总了PHP中FileSet::getMySets方法的典型用法代码示例。如果您正苦于以下问题:PHP FileSet::getMySets方法的具体用法?PHP FileSet::getMySets怎么用?PHP FileSet::getMySets使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileSet
的用法示例。
在下文中一共展示了FileSet::getMySets方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: filterBySet
public function filterBySet($fs) {
if ($fs != false) {
$this->filteredFileSetIDs[] = intval($fs->getFileSetID());
} else {
$s1 = FileSet::getMySets();
$sets = array();
foreach($s1 as $fs) {
$sets[] = $fs->getFileSetID();
}
if (count($sets) == 0) {
return false;
}
$db = Loader::db();
$setStr = implode(',', $sets);
$this->addToQuery("left join FileSetFiles fsfex on fsfex.fID = f.fID");
$this->filter(false, '(fsfex.fID is null or (select count(fID) from FileSetFiles where fID = fsfex.fID and fsID in (' . $setStr . ')) = 0)');
}
}
示例2: array
echo $f->getFileID();
?>
" />
<? } ?>
<? } ?>
<div class="clear"></div>
<div class="ccm-search-bar">
<?php
echo $form->text('fsAddToSearchName', $searchRequest['fsSearchName'], array('autocomplete' => 'off'));
?>
</div>
<? $s1 = FileSet::getMySets(); ?>
<? if (count($s1) > 0) { ?>
<div class="clearfix">
<ul class="inputs-list">
<? foreach($sets as $s) {
$displaySet = true;
$pf = new Permissions($s);
if (!$pf->canAddFiles()) {
$displaySet = false;
} else {
foreach($extensions as $ext) {
if (!$pf->canAddFileType($ext)) {
$displaySet = false;
示例3: t
}
?>
</div>
</div>
</div>
<div class="clearfix">
<label for="ccm-form-fileset"><?php
echo t('Add uploaded files to a set?');
?>
</label>
<div class="input">
<div id="ccm-form-fileset">
<?php
Loader::model('file_set');
$fs = new FileSet();
$fileSets = $fs->getMySets();
$sets = array(0 => t('None'));
foreach ($fileSets as $fileSet) {
$sets[$fileSet->fsID] = $fileSet->fsName;
}
print $form->select('addFilesToSet', $sets, $miniSurveyInfo['addFilesToSet']);
?>
</div>
</div>
</div>
</fieldset>
</div>
<input type="hidden" id="qsID" name="qsID" type="text" value="<?php
echo intval($miniSurveyInfo['questionSetId']);
?>
示例4: setFileSets
private function setFileSets()
{
Loader::model('file_set');
$fileSets = FileSet::getMySets();
$this->set('fileSets', $fileSets);
}
示例5: t
<td width="100%"><h1><?php echo t('Set')?></h1></td>
<?php } ?>
<td>
<div class="ccm-file-sets-search-wrapper-input">
<?php echo $form->text('fsAddToSearchName', $searchRequest['fsSearchName'], array('autocomplete' => 'off'))?>
</div>
</td>
</tr>
</table>
</div>
<?php $s1 = FileSet::getMySets(); ?>
<?php if (count($s1) > 0) { ?>
<div class="ccm-file-search-advanced-sets-results">
<ul id="ccm-file-search-add-to-sets-list">
<?php foreach($sets as $s) {
$displaySet = true;
$pf = new Permissions($s);
if (!$pf->canAddFiles()) {
$displaySet = false;
} else {
foreach($extensions as $ext) {
if (!$pf->canAddFileType($ext)) {
$displaySet = false;
示例6: defined
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$sets = FileSet::getMySets();
?>
<div class="form-group" id="ccm-file-set-search">
<form class="form-inline">
<input type="search" class="form-control input-sm" data-field="file-set-search" autocomplete="off" placeholder="<?php
echo t('Filter Sets');
?>
" />
</form>
</div>
<div class="form-group" id="ccm-file-set-list">
<?php
if (count($sets)) {
?>
<?php
foreach ($sets as $fs) {
if ($displayFileSet($fs)) {
?>
<div class="checkbox li">
<label>
<?php
print $getCheckbox($fs);
?>
<span data-label="file-set-name"><?php
echo $fs->getFileSetName();