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


PHP freelancer::GetField方法代码示例

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


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

示例1: freelancer

    $poa = new projects_offers_answers();
    $poa->GetInfo($uid);
    $poa_codes = $poa->GetOpCodes();
    $user = new freelancer();
    // Изменяем авто продление PRO, если нужно
    if (strtolower($_GET['pro_auto_prolong']) == 'on') {
        $user->setPROAutoProlong('on', $uid);
    }
    if (strtolower($_GET['pro_auto_prolong']) == 'off') {
        $user->setPROAutoProlong('off', $uid);
    }
    $user->GetUser($_SESSION['login']);
    require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/account.php";
    $account = new account();
    $ok = $account->GetInfo($uid, true);
    $u_is_pro_auto_prolong = $user->GetField($uid, $e, 'is_pro_auto_prolong', false);
    // Включено ли у юзера автоматическое продление PRO
    require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/professions.common.php";
    $xajax->printJavascript('/xajax/');
    ?>
<script type="text/javascript">
var account_sum = <?php 
    echo round($account->sum, 2);
    ?>
;
var op = [];
<?php 
    foreach ($poa_codes as $ammount => $sum) {
        ?>
op[<?php 
        echo $ammount;
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:content.php

示例2: _getPortfolioData

 /**
  * Возвращает часть ответа с информацией о работе в портфолио
  * 
  * @param  array $aData все портфолио юзера
  * @param  int $nUid UID юзера владельца портфолио
  * @return array
  */
 private function _getPortfolioData($aPortfolio = array(), $nUid = 0)
 {
     $aReturn = array();
     if (is_array($aPortfolio) && $aPortfolio) {
         require_once ABS_PATH . '/classes/freelancer.php';
         $freelancer = new freelancer();
         $login = $freelancer->GetField($nUid, $error, 'login');
         foreach ($aPortfolio as $aOne) {
             $sExt = pathinfo($aOne['pict'], PATHINFO_EXTENSION);
             if (!in_array($sExt, $GLOBALS['graf_array']) || $sExt == 'swf' || $aOne['is_video'] == 't' || $aOne['is_blocked'] == 't') {
                 continue;
             }
             $nUpdateTime = $aOne['edit_date'] ? strtotime($aOne['edit_date']) : 0;
             $aReturn[] = array("id" => $aOne['id'], "user_id" => $aOne['user_id'], "category_group_id" => $aOne['prof_group_id'], "category_id" => $aOne['prof_id'], "title" => $aOne['name'] ? iconv('cp1251', 'utf-8', $aOne['name']) : '', "sequence" => $aOne['norder'], "image" => array("url" => WDCPREFIX . '/users/' . $login . '/upload/', "file" => $aOne['prev_pict'] ? substr($aOne['prev_pict'], 5) . '?' . $nUpdateTime : '', "file_big" => $aOne['pict'] ? substr($aOne['pict'], 2) . '?' . $nUpdateTime : ''), "status" => 1, "create_time" => strtotime($aOne['post_date']), "update_time" => $nUpdateTime);
         }
     }
     return $aReturn;
 }
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:25,代码来源:mobile.php


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