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

PHP project_get_row函数代码示例

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

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



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

示例1: string_display_links

	<td>
		<?php 
        echo string_display_links($t_project['description']);
        ?>
	</td>
</tr>
<?php 
    }
    $t_subprojects = project_hierarchy_get_subprojects($t_project_id, true);
    if (0 < count($t_projects) || 0 < count($t_subprojects)) {
        array_unshift($t_stack, $t_projects);
    }
    if (0 < count($t_subprojects)) {
        $t_full_projects = array();
        foreach ($t_subprojects as $t_project_id) {
            $t_full_projects[] = project_get_row($t_project_id);
        }
        $t_subprojects = multi_sort($t_full_projects, $f_sort, $t_direction);
        array_unshift($t_stack, $t_subprojects);
    }
}
?>
</table>
<br />

<!-- GLOBAL CATEGORIES -->
<a name="categories" />
<div align="center">
<table class="width75" cellspacing="1">

<!-- Title -->
开发者ID:Tarendai,项目名称:spring-website,代码行数:31,代码来源:manage_proj_page.php


示例2: lang_get

	</td>
	<td width="20%">
		<?php 
    echo lang_get('description');
    ?>
	</td>
	<td width="20%">
		<?php 
    echo lang_get('actions');
    ?>
	</td>
</tr>

<?php 
    foreach ($t_subproject_ids as $t_subproject_id) {
        $t_subproject = project_get_row($t_subproject_id);
        $t_inherit_parent = project_hierarchy_inherit_parent($t_subproject_id, $f_project_id, true);
        ?>
<tr <?php 
        echo helper_alternate_class();
        ?>
>
	<td>
		<a href="manage_proj_edit_page.php?project_id=<?php 
        echo $t_subproject['id'];
        ?>
"><?php 
        echo string_display($t_subproject['name']);
        ?>
</a>
	</td>
开发者ID:kaos,项目名称:mantisbt,代码行数:31,代码来源:manage_proj_edit_page.php


示例3: process_imap_mailbox

 private function process_imap_mailbox()
 {
     $this->_mailserver = new Net_IMAP($this->_mailbox['hostname'], $this->_mailbox['port']);
     if ($this->_mailserver->_connected === TRUE) {
         $t_loginresult = $this->mailbox_login();
         if (!$this->pear_error('Attempt login', $t_loginresult)) {
             // If basefolder is empty we try to select the inbox folder
             if (is_blank($this->_mailbox['imap_basefolder'])) {
                 $this->_mailbox['imap_basefolder'] = $this->_mailserver->getCurrentMailbox();
             }
             if ($this->_mailserver->mailboxExist($this->_mailbox['imap_basefolder'])) {
                 if ($this->_test_only === FALSE) {
                     // There does not seem to be a viable api function which removes this plugins dependability on table column names
                     // So if a column name is changed it might cause problems if the code below depends on it.
                     // Luckily we only depend on id, name and enabled
                     if ($this->_mailbox['imap_createfolderstructure'] == ON) {
                         $t_projects = project_get_all_rows();
                         $t_hierarchydelimiter = $this->_mailserver->getHierarchyDelimiter();
                     } else {
                         $t_projects = array(0 => project_get_row($this->_mailbox['project_id']));
                     }
                     foreach ($t_projects as $t_project) {
                         if ($t_project['enabled'] == ON) {
                             $t_project_name = $this->cleanup_project_name($t_project['name']);
                             $t_foldername = $this->_mailbox['imap_basefolder'] . ($this->_mailbox['imap_createfolderstructure'] ? $t_hierarchydelimiter . $t_project_name : NULL);
                             // We don't need to check twice whether the mailbox exist incase createfolderstructure is false
                             if (!$this->_mailbox['imap_createfolderstructure'] || $this->_mailserver->mailboxExist($t_foldername) === TRUE) {
                                 $this->_mailserver->selectMailbox($t_foldername);
                                 $t_ListMsgs = $this->_mailserver->getListing();
                                 if (!$this->pear_error('Retrieve list of messages', $t_ListMsgs)) {
                                     while ($t_Msg = array_shift($t_ListMsgs)) {
                                         $t_isDeleted = $this->isDeleted($t_Msg['msg_id']);
                                         if ($this->pear_error('Check email deleted flag', $t_isDeleted)) {
                                             $t_isDeleted = FALSE;
                                         }
                                         if ($t_isDeleted === TRUE) {
                                             // Email marked as deleted. Do nothing
                                         } else {
                                             $t_emailresult = $this->process_single_email($t_Msg['msg_id'], (int) $t_project['id']);
                                             if ($t_emailresult === TRUE) {
                                                 $t_deleteresult = $this->_mailserver->deleteMsg($t_Msg['msg_id']);
                                                 $this->pear_error('Attempt delete email', $t_deleteresult);
                                             }
                                         }
                                     }
                                 }
                             } elseif ($this->_mailbox['imap_createfolderstructure'] === TRUE) {
                                 // create this mailbox
                                 $this->_mailserver->createMailbox($t_foldername);
                             }
                         } else {
                             $this->custom_error('Project is disabled: ' . $t_project['name']);
                         }
                     }
                 }
             } else {
                 $this->custom_error('IMAP basefolder not found');
             }
         }
         //$t_mailbox->expunge(); //disabled as this is handled by the disconnect
         // mail_delete decides whether to perform the expunge command before closing the connection
         $this->_mailserver->disconnect((bool) $this->_mail_delete);
     } else {
         $this->custom_error('Failed to connect to the mail server');
     }
 }
开发者ID:JeromyK,项目名称:EmailReporting,代码行数:66,代码来源:mail_api.php


示例4: project_get_field

function project_get_field($p_project_id, $p_field_name, $p_trigger_errors = true)
{
    $row = project_get_row($p_project_id, $p_trigger_errors);
    if (isset($row[$p_field_name])) {
        return $row[$p_field_name];
    } else {
        if ($p_trigger_errors) {
            error_parameters($p_field_name);
            trigger_error(ERROR_DB_FIELD_NOT_FOUND, WARNING);
        }
    }
    return '';
}
开发者ID:Kirill,项目名称:mantisbt,代码行数:13,代码来源:project_api.php


示例5: bug_get

}
$t_bug = bug_get($id);
?>

<div class="ch-box-lite ch-box-error">
    <h2>Bug ID:<?php 
echo $id;
?>
</h2>
</div>
<div class="ch-box-lite">
    <h2>Basic Info</h2>
    <div class="ch-box-info">
        <h4>Project:
<?php 
$t_project = project_get_row($t_bug->project_id);
echo $t_project['name'];
?>
        </h4>
        <div style="padding-left: 10px;">
<?php 
echo $t_project['description'];
?>
        </div>
    </div>
    <table class="ch-datagrid" summary="">
        <thead>
        <tr>
            <th scope="col">Platform</th>
            <th scope="col">VersionName</th>
            <th scope="col">PhoneBrand</th>
开发者ID:since2014,项目名称:MantisAcra,代码行数:31,代码来源:brief.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP project_hierarchy_get_all_subprojects函数代码示例发布时间:2022-05-15
下一篇:
PHP project_get_name函数代码示例发布时间: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