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


PHP midcom::get_version方法代码示例

本文整理汇总了PHP中midcom::get_version方法的典型用法代码示例。如果您正苦于以下问题:PHP midcom::get_version方法的具体用法?PHP midcom::get_version怎么用?PHP midcom::get_version使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在midcom的用法示例。


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

示例1: mgd_version

    echo "<a href=\"http://midgard-project.org/midgard2/\">Midgard2</a>";
} else {
    echo "<a href=\"http://midgard-project.org/midgard1/\">Midgard</a>";
}
?>
</td>
                        <td><?php 
echo mgd_version();
?>
</td>
                        <td>Content Repository</td>
                    </tr>
                    <tr>
                        <td><a href="http://midgard-project.org/midcom/">MidCOM</a></td>
                        <td><?php 
echo midcom::get_version();
?>
</td>
                        <td>Component Framework for PHP</td>
                    </tr>
                    <tr>
                        <td><a href="http://www.php.net/">PHP</a></td>
                        <td><?php 
echo phpversion();
?>
</td>
                        <td>Web programming language</td>
                    </tr>
                    <?php 
// FIXME: IIRC, there was a function for getting this info
$server_software = explode(' ', $_SERVER['SERVER_SOFTWARE']);
开发者ID:nemein,项目名称:openpsa,代码行数:31,代码来源:about.php

示例2: populate_meta_head

 /**
  * Populates appropriate metadata into XHTML documents based on metadata information
  * available to MidCOM for the request.
  */
 function populate_meta_head()
 {
     // Populate the request metadata into view
     $request_metadata = $this->get_request_metadata();
     // HTML generator information
     midcom::get('head')->add_meta_head(array('name' => 'generator', 'content' => 'Midgard/' . mgd_version() . ' MidCOM/' . midcom::get_version() . ' PHP/' . phpversion()));
     // PermaLink into machine-detectable format
     midcom::get('head')->add_link_head(array('rel' => 'bookmark', 'href' => $request_metadata['permalink']));
     // Last revision time for the entire page
     if ($request_metadata['lastmodified']) {
         midcom::get('head')->add_meta_head(array('name' => 'lastupdated', 'content' => @gmdate('Y-m-d H:i:s\\Z', $request_metadata['lastmodified'])));
     }
     // If an object has been bound we have more information available
     $view_metadata = $this->get_view_metadata();
     if ($view_metadata) {
         foreach ($GLOBALS['midcom_config']['metadata_head_elements'] as $property => $metatag) {
             $content = $view_metadata->get($property);
             if ($content) {
                 // Handle date fields
                 switch ($property) {
                     case 'published':
                     case 'created':
                     case 'revised':
                     case 'approved':
                     case 'locked':
                         $content = gmdate('Y-m-d', (int) $content);
                         break;
                 }
                 midcom::get('head')->add_meta_head(array('name' => $metatag, 'content' => $content));
             }
         }
         // TODO: Add support for tags here
         if ($GLOBALS['midcom_config']['metadata_opengraph']) {
             $this->_add_opengraph_metadata($view_metadata);
         }
         if ($GLOBALS['midcom_config']['positioning_enable']) {
             // Load the positioning library
             midcom::get('componentloader')->load_library('org.routamc.positioning');
             // Display position metadata
             $object_position = new org_routamc_positioning_object($view_metadata->object);
             $object_position->set_metadata();
         }
     }
 }
开发者ID:nemein,项目名称:openpsa,代码行数:48,代码来源:metadata.php

示例3: get_component_version

 public function get_component_version($component)
 {
     if ($component == 'midcom') {
         return midcom::get_version();
     }
     if (!$this->is_installed($component) || !isset($this->manifests[$component]->version)) {
         return null;
     }
     return $this->manifests[$component]->version;
 }
开发者ID:nemein,项目名称:openpsa,代码行数:10,代码来源:_componentloader.php


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