当前位置: 首页>>代码示例>>PHP>>正文


PHP FileSet::getMySets方法代码示例

本文整理汇总了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)');
		}
	}
开发者ID:notzen,项目名称:concrete5,代码行数:18,代码来源:file_list.php

示例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;
开发者ID:ronlobo,项目名称:concrete5,代码行数:31,代码来源:add_to_sets.php

示例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']);
?>
开发者ID:ricardomccerqueira,项目名称:rcerqueira.portfolio,代码行数:31,代码来源:form_setup_html.php

示例4: setFileSets

 private function setFileSets()
 {
     Loader::model('file_set');
     $fileSets = FileSet::getMySets();
     $this->set('fileSets', $fileSets);
 }
开发者ID:robchenski,项目名称:ids,代码行数:6,代码来源:controller.php

示例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;
开发者ID:rii-J,项目名称:concrete5-de,代码行数:31,代码来源:add_to_sets.php

示例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();
开发者ID:yakamoz-fang,项目名称:concrete,代码行数:31,代码来源:add_to_sets.php


注:本文中的FileSet::getMySets方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。