• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getResources函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getResources函数的典型用法代码示例。如果您正苦于以下问题:PHP getResources函数的具体用法?PHP getResources怎么用?PHP getResources使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getResources函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: createResourceHtml

 public function createResourceHtml()
 {
     global $connection;
     $resources = getResources($connection);
     $content = '<thead><tr><th>ID</th><th>RESOURCE</th></tr></thead>';
     foreach ($resources as $key => $value) {
         $content = $content . '<tr><td>' . $value['id'] . '</td><td>' . $value['resource'] . '</td></tr>';
     }
     return $content;
 }
开发者ID:nkdas,项目名称:ems,代码行数:10,代码来源:createHtml.php


示例2: ob_start

	</body>
</html>
<?php 
//------------ Output the sample into /draft/index.htm for debugging on mobile --------
ob_start();
?>
<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>Highcharts Sample</title>
		<?php 
echo getFramework(FRAMEWORK);
?>
		<?php 
echo getResources();
?>
		<script type="text/javascript">
		<?php 
@(include "{$fullpath}/demo.js");
?>
		</script>

		<style type="text/css">
			<?php 
@(include "{$fullpath}/demo.css");
?>
		</style>

	</head>
	<body style="margin: 0">
开发者ID:Johnb21,项目名称:highcharts.com,代码行数:31,代码来源:view.php


示例3: function

        $app->error($e);
    }
});
$app->get('/history/:startFrom', function ($startFrom) use($app, $config, $connection_name) {
    try {
        $app->response->headers->set('Content-Type', 'application/json');
        include '../app/functions.feed.php';
        echo feedhistory($connection_name, $startFrom);
    } catch (\Exception $e) {
        $app->error($e);
    }
});
$app->get('/resources/:id(/:maxWidth)', function ($id, $maxWidth = 0) use($app, $config, $connection_name) {
    try {
        include '../app/functions.image.php';
        $fp = getResources($config['uploads_dir'], $id, $maxWidth, $connection_name);
        if (!$fp) {
            $app->notFound();
        }
        $app->response->headers->set('Content-Type', $fp['mime']);
        $app->response->setBody($fp['data']);
    } catch (\Exception $e) {
        $app->error($e);
    }
});
$app->get('/annotation/new', function () use($app, $config, $connection_name) {
    try {
        include '../app/functions.web.php';
        $app->render('annotation/form.php', array());
    } catch (\Exception $e) {
        $app->error($e);
开发者ID:BitPrepared,项目名称:OnlineOnsiteOngoing,代码行数:31,代码来源:app.php


示例4: isset



	</aisde>

	<section class="[ column-9_12 column sc_column_item ][ resource-centre-results__section ]">
		
		<?php 
$group_active = isset($_POST['group']) ? $_POST['group'] : 'ninguno';
?>
		<article class="[ columns_wrap sc_columns sc_columns_count_12 columns_fluid ][ posts-container ]" data-group_active=".<?php 
echo $group_active;
?>
">
	
			<?php 
$query_resources = getResources($search);
if (!empty($query_resources)) {
    foreach ($query_resources as $post) {
        setup_postdata($post);
        $meta = get_post_meta($post->ID, '_open_contribution_meta', true);
        $class_contri = $meta == 'yes' ? $meta . '-contribution ' : 'no-contribution ';
        $resource_info = get_resource_info($post->ID);
        $resource_filter_classes = $class_contri;
        foreach ($resource_info as $key => $value) {
            $resource_filter_classes .= $value . ' ';
        }
        ?>
					<div class="[ column-12_12 sc_column_item ][ post ][ <?php 
        echo $resource_filter_classes;
        ?>
]">
开发者ID:pcuervo,项目名称:odc,代码行数:29,代码来源:page-resource-centre-results.php


示例5: isMarked

function isMarked($resource, $privilege, $resourcePrivileges)
{
    $flag = false;
    for ($i = 0; $i < count($resourcePrivileges); ++$i) {
        if ($resource == $resourcePrivileges[$i]['resource_id'] && $privilege == $resourcePrivileges[$i]['privilege_id']) {
            $flag = true;
            break;
        } else {
            $flag = false;
        }
    }
    return $flag;
}
if (isset($_SESSION['pk_admin'])) {
    $roles = getRoles($connection);
    $resources = getResources($connection);
    $privileges = getPrivileges($connection);
    if (isset($_POST['role'])) {
        $roleId = getId('role', $_POST['role'], 'roles');
        $resourcePrivileges = getResourcePrivileges($connection, $roleId);
    } else {
        $resourcePrivileges = getResourcePrivileges($connection, 1);
    }
    // draw a table for the page
    $content = '<thead><tr><th></th>';
    // draw table header (row 1)
    foreach ($privileges as $key => $value) {
        $content = $content . '<th>' . $value['privilege'] . '</th>';
    }
    $content = $content . '</tr></thead>';
    // draw table content
开发者ID:nkdas,项目名称:ems,代码行数:31,代码来源:getResourcePrivilege.php


示例6: array

 $filenameCol = $mapper->getColByName("filename");
 if ($filenameCol == null) {
     View::debug("Filename not provided", 1);
 }
 // check for files to exist
 // $ret = checkForFiles( $excel, $mapper->getColByName( "filename" ), $uploadsMap );
 //  if( $ret !== 0 ) {
 //    View::debug( "Could not find file ".$ret, 1 );
 //    //        break;
 // }
 $xml_source = null;
 $md5r = null;
 // generate all Resources
 $rowErrors = array();
 $rowWarnings = array();
 $res = getResources($excel, $mapper, $template, $uploadsMap, $rowErrors, $rowWarnings);
 $rowsValid = rowValidator($rowErrors, $rowWarnings);
 if ($filesystemValid === 0 && $tableValid === 0 && $rowsValid === 0) {
     // transform to XML format
     $xml = transformToXML($res);
     $xml->save($excel->getSource() . ".xml");
     //    echo $xml->saveXML();
     //$xml->saveXML();//proftpd //pathinfo string []
     $xml_source = $xml->saveXML();
     $xml_source = escape_check($xml_source);
     $xml_source = str_replace("\\n", "", $xml_source);
     $md5r = md5($scramble_key . $xml_source);
     //    echo $scramble_key;
     foreach ($res as $r) {
         $r->updateResource();
     }
开发者ID:superdol,项目名称:xlsimport,代码行数:31,代码来源:controller.php


示例7: getResource

 function getResource($key)
 {
     $resource = isAke(getResources(), $key, curl_init());
     return unserialize(curl_getinfo($resource, CURLINFO_PRIVATE));
 }
开发者ID:schpill,项目名称:standalone,代码行数:5,代码来源:functions.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getResult函数代码示例发布时间:2022-05-15
下一篇:
PHP getResource函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap