本文整理匯總了PHP中IO::getCloud方法的典型用法代碼示例。如果您正苦於以下問題:PHP IO::getCloud方法的具體用法?PHP IO::getCloud怎麽用?PHP IO::getCloud使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類IO
的用法示例。
在下文中一共展示了IO::getCloud方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
}
//獲取所有雲盤
$mycloud = array();
$icoarr = array();
foreach (C::t('connect')->fetch_all_folderdata($uid) as $value) {
$folderarr[$value['fid']] = $value;
$bzarr = explode(':', $value['bz']);
$data[] = array('attr' => array('id' => 'f-' . $value['fid'] . '-' . $winid, 'rel' => $bzarr[0]), 'data' => $value['fname'], 'state' => 'closed');
}
if (count($data) > 0) {
$data[] = array('icosdata' => '', 'folderdata' => $folderarr);
}
} else {
if ($bz) {
$bzarr = explode(':', $bz);
$root = IO::getCloud($bz);
$data[] = array('attr' => array('id' => 'f-' . md5($path) . '-' . $winid, 'rel' => $bzarr[0]), 'data' => $root['cloudname'], 'state' => 'closed');
if (count($data) > 0) {
$data[] = array('icosdata' => '', 'folderdata' => '');
}
} else {
$query = DB::query("select * from " . DB::table('folder') . " where innav>0 and pfid='0' and uid='{$_G[uid]}' order by display ");
while ($value = DB::fetch($query)) {
$data[] = array('attr' => array('id' => 'f-' . $value['fid'] . '-' . $winid, 'rel' => $value['flag']), 'data' => $value['fname'], 'state' => DB::result_first("select COUNT(*) from " . DB::table('folder') . " where pfid='{$value[fid]}'") ? 'closed' : '');
}
//獲取部門
include_once libfile('function/organization');
if ($_G['adminid'] == 1) {
$orglist = C::t('organization')->fetch_all_by_forgid(0);
} else {
$orglist = getOrgByUid($_G['uid'], true);