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


PHP CFunctions类代码示例

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


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

示例1: loadRefAddress

 /**
  * Load postal address object
  *
  * @return CGroups|CFunctions|CBlocOperatoire
  */
 function loadRefAddress()
 {
     $this->_ref_address = $this->loadFwdRef("address_id", true);
     if ($this->address_class == "CFunctions" || $this->address_class == "CBlocOperatoire") {
         $this->_ref_address->loadRefGroup();
     }
     return $this->_ref_address;
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:13,代码来源:CProductOrder.class.php

示例2: getImportFunction

 /**
  * Get import function
  *
  * @return CFunctions
  */
 function getImportFunction()
 {
     static $function;
     if ($function) {
         return $function;
     }
     $function_name = CAppUI::conf($this->_import_function_name_conf);
     $function = new CFunctions();
     $function->text = $function_name;
     $function->loadMatchingObjectEsc();
     if (!$function->_id) {
         $function->group_id = CGroups::loadCurrent()->_id;
         $function->type = "cabinet";
         $function->compta_partagee = 0;
         $function->color = "#CCCCCC";
         if ($msg = $function->store()) {
             CAppUI::setMsg($msg, UI_MSG_WARNING);
         }
     }
     return $function;
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:26,代码来源:CExternalDBImport.class.php

示例3: CFunctions

 * @category Mediusers
 * @package  Mediboard
 * @author   SARL OpenXtrem <dev@openxtrem.com>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  SVN: $Id:$
 * @link     http://www.mediboard.org
 */
CCanDo::checkRead();
$user_id = CValue::getOrSession("user_id");
// Récupération des fonctions
$group = CGroups::loadCurrent();
if ($group->_id) {
    $functions = $group->loadFunctions();
} else {
    // Cas du admin qui n'a pas de mediuser, et donc pas de group_id
    $function = new CFunctions();
    $where = array("actif" => "='1'");
    $functions = $function->loadListWithPerms(PERM_READ, $where);
}
// Récupération du user à ajouter/editer
$object = new CMediusers();
if (CValue::get("no_association")) {
    $object->user_id = $user_id;
    $object->updateFormFields();
    $object->_user_id = $user_id;
    $object->_id = null;
    $object->actif = CValue::get("ldap_user_actif", 1);
    $object->deb_activite = CValue::get("ldap_user_deb_activite");
    $object->fin_activite = CValue::get("ldap_user_fin_activite");
} else {
    $object->load($user_id);
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_edit_mediuser.php

示例4: CSejour

$filterOp->salle_id = CValue::getOrSession("salle_id");
$filterOp->_date_min = CValue::get("_date_min", $now);
$filterOp->_date_max = CValue::get("_date_max", $now);
$filterOp->_prat_id = CValue::getOrSession("_prat_id");
$filterOp->_plage = CValue::getOrSession("_plage");
$filterOp->_ranking = CValue::getOrSession("_ranking");
$filterOp->_cotation = CValue::getOrSession("_cotation");
$filterOp->_specialite = CValue::getOrSession("_specialite");
$filterOp->_codes_ccam = CValue::getOrSession("_codes_ccam");
$filterOp->_ccam_libelle = CValue::getOrSession("_ccam_libelle");
$filterSejour = new CSejour();
$filterSejour->type = CValue::getOrSession("type");
$filterSejour->ald = CValue::getOrSession("ald");
$yesterday = CMbDT::date("-1 day", $now);
$mediuser = new CMediusers();
$listPrat = $mediuser->loadPraticiens(PERM_READ);
$function = new CFunctions();
$listSpec = $function->loadSpecialites(PERM_READ);
// Récupération des salles
$listBlocs = CGroups::loadCurrent()->loadBlocs(PERM_EDIT);
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("chir", $user->_id);
$smarty->assign("filter", $filterOp);
$smarty->assign("filterSejour", $filterSejour);
$smarty->assign("now", $now);
$smarty->assign("yesterday", $yesterday);
$smarty->assign("listPrat", $listPrat);
$smarty->assign("listSpec", $listSpec);
$smarty->assign("listBlocs", $listBlocs);
$smarty->display("print_plannings/vw_print_planning.tpl");
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:vw_print_planning.php

示例5: CFunctions

CCanDo::checkRead();
$user = CMediusers::get();
$user->loadRefFunction();
$selCabinet = CValue::getOrSession("selCabinet", $user->function_id);
$droit = true;
// si on affecte a selCabinet le function_id du user, on verifie si le user a le droit de creer des categories
if ($selCabinet == $user->function_id) {
    // Chargement de la liste de tous la cabinets
    $cabinet = new CFunctions();
    $listCabinets = $cabinet->loadSpecialites();
    if (!array_key_exists($selCabinet, $listCabinets)) {
        $droit = false;
    }
}
// Chargement de la liste des cabinets auquel le user a droit
$function = new CFunctions();
$listFunctions = $function->loadSpecialites(PERM_EDIT);
// Creation d'une categorie
$categorie = new CConsultationCategorie();
$categorie_id = CValue::getOrSession("categorie_id");
// Chargement des categories pour le cabinet selectionné ou pour le cabinet auquel appartient le user
if ($selCabinet) {
    $whereCategorie["function_id"] = " = '{$selCabinet}'";
} else {
    $whereCategorie["function_id"] = " = '{$user->function_id}'";
}
$orderCategorie = "nom_categorie ASC";
$categories = $categorie->loadList($whereCategorie, $orderCategorie);
// Chargement de la categorie selectionnee
if ($categorie_id) {
    $categorie = new CConsultationCategorie();
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:vw_categories.php

示例6: COperation

<?php

/**
 * $Id: vw_idx_materiel.php 27325 2015-02-26 09:30:02Z aurelie17 $
 *
 * @package    Mediboard
 * @subpackage dPbloc
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision: 27325 $
 */
CCanDo::checkEdit();
$filter = new COperation();
$filter->_date_min = CValue::getOrSession("_date_min", CMbDT::date("-7 day"));
$filter->_date_max = CValue::getOrSession("_date_max", CMbDT::date());
$listBlocs = CGroups::loadCurrent()->loadBlocs(PERM_READ, null, "nom");
$bloc_id = CValue::getOrSession("bloc_id", reset($listBlocs)->_id);
$praticien = new CMediusers();
$praticiens = $praticien->loadPraticiens();
$function = new CFunctions();
$functions = $function->loadSpecialites();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("filter", $filter);
$smarty->assign("bloc_id", $bloc_id);
$smarty->assign("listBlocs", $listBlocs);
$smarty->assign("praticiens", $praticiens);
$smarty->assign("functions", $functions);
$smarty->assign("function_id", CValue::getOrSession("function_id"));
$smarty->assign("praticien_id", CValue::getOrSession("praticien_id"));
$smarty->display("vw_idx_materiel.tpl");
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:vw_idx_materiel.php

示例7: utf8_encode

						  echo utf8_encode($__text);
						  if($user['resp_ent'] != $__text) {
						  ?>
						  <div class="bulle">
							  <?php echo utf8_encode($user['resp_ent']); ?>
						  </div>
              	  <?php 
              }
              ?>			  
			  </td>
			  
              <td class="zinfo"> 
			  
			  <?php
			  //--------------- Owen 01/2011 Limitation de caractère
              $__text = CFunctions::cut_string($user['nom_ent'], $max_input_text+3);
              echo utf8_encode($__text);
              if($user['nom_ent'] != $__text) {
              	?>
              	 <div class="bulle">
			         <?php echo utf8_encode($user['nom_ent']); ?>
			     </div>
              	<?php 
              }
              ?>
			  </td>
			  <td class="zinfo"> 
			  <?php 
				echo $user['id_sec'];
				$sql_nomSec='select nom_sec FROM secteur WHERE id_sec='.$user['id_sec'];
				$nomSec=CBdd::select_one($sql_nomSec, 'nom_sec');
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:user_groupeUtilitaire.php

示例8: CFunctions

<?php

/**
 * $Id: vw_edit_packs.php 19285 2013-05-26 13:10:13Z phenxdesign $
 *
 * @package    Mediboard
 * @subpackage Labo
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision: 19285 $
 */
CCanDo::checkRead();
$user = CMediusers::get();
// Chargement des fontions
$function = new CFunctions();
$listFunctions = $function->loadListWithPerms(PERM_EDIT);
// Chargement du pack demandé
$pack = new CPackExamensLabo();
$pack->load(CValue::getOrSession("pack_examens_labo_id"));
if ($pack->_id && $pack->getPerm(PERM_EDIT)) {
    $pack->loadRefs();
} else {
    $pack = new CPackExamensLabo();
}
//Chargement de tous les packs
$where = array("function_id IS NULL OR function_id " . CSQLDataSource::prepareIn(array_keys($listFunctions)));
$where["obsolete"] = " = '0'";
$order = "libelle";
$listPacks = $pack->loadList($where, $order);
foreach ($listPacks as $key => $curr_pack) {
    $listPacks[$key]->loadRefs();
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:vw_edit_packs.php

示例9: if

}
else if ( $_SERVER['REQUEST_METHOD'] == "POST" ) {	
	$a = @$_POST["a"];
	if(!empty($_POST['order'])) $order = $_POST['order']; else $order = @$_SESSION['order'];
}


// SESSION VARIABLE
if (isset($_GET['alphaA']))	$_SESSION['alphaA']	= $_GET['alphaA'];


// RECUPERATION VALEUR
$zSortField      = 'id' ;
$zSortDirection  = CFunctions::getUserParam('zSortDirection', 'ASC') ;
$pagecourant     = CFunctions::getUserParam('zSortField', '0') ;
$iCurrentPage    = CFunctions::getUserParam('iPage', '1') ;
$iMaxPerPage     = CConfiguration::get_valeur('MAX_ITEM_PER_PAGE', 10) ;
$iStart          = $iCurrentPage - 1  ;


//COMPTEUR D'ENREGISTREMENT
$i = CTableGroupeCommune::get_iNbrContact($_SESSION['groupe']);
$iMaxPerPage1 = $i-1;
// FIN COMPTEUR
$iNbPage    = ceil(($iMaxPerPage1/$iMaxPerPage)) ;

$zListeGetParam  = '' ;



/*--------------------------------------------------------------------
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:user_groupeCommune.php

示例10: createDoctor

 /**
  * Create the mediuser
  *
  * @param CMediusers $mediuser mediuser
  *
  * @return int
  */
 function createDoctor(CMediusers $mediuser)
 {
     $sender = $this->_ref_sender;
     $function = new CFunctions();
     $function->text = CAppUI::conf("hl7 importFunctionName");
     $function->group_id = $sender->group_id;
     $function->loadMatchingObjectEsc();
     if (!$function->_id) {
         $function->type = "cabinet";
         $function->compta_partagee = 0;
         $function->color = "ffffff";
         $function->store();
     }
     $mediuser->function_id = $function->_id;
     $mediuser->makeUsernamePassword($mediuser->_user_first_name, $mediuser->_user_last_name, null, true);
     $mediuser->_user_type = 13;
     // Medecin
     $mediuser->actif = CAppUI::conf("hl7 doctorActif") ? 1 : 0;
     $user = new CUser();
     $user->user_last_name = $mediuser->_user_last_name;
     $user->user_first_name = $mediuser->_user_first_name;
     // On recherche par le seek
     $users = $user->seek("{$user->user_last_name} {$user->user_first_name}");
     if (count($users) == 1) {
         $user = reset($users);
         $user->loadRefMediuser();
         $mediuser = $user->_ref_mediuser;
     } else {
         // Dernière recherche si le login est déjà existant
         $user = new CUser();
         $user->user_username = $mediuser->_user_username;
         if ($user->loadMatchingObject()) {
             // On affecte un username aléatoire
             $mediuser->_user_username .= rand(1, 10);
         }
         $mediuser->store();
     }
     return $mediuser->_id;
 }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:46,代码来源:CHL7v2MessageXML.class.php

示例11:

 <h2>Informations personnelles</h2>
 <p>
   <label>Civilit&eacute;</label>
   <input type="radio" value="3" <?php echo CForm::get_checked($civilite, 3) ?> name="civilite"/>
   M.
   <input type="radio" value="1" <?php echo CForm::get_checked($civilite, 1) ?> name="civilite"/>
   Mme
   <input type="radio" value="2" <?php echo CForm::get_checked($civilite,2) ?> name="civilite"/>
   Mlle</p>
 <p>
   <label>Nom </label>
   <input name="nom" type="text" value="<?php echo  $nom?>" />
 </p>
 <p>
   <label>Pr&eacute;nom </label>
   <input name="prenom" type="text" value="<?php echo  CFunctions::clean($prenom)?>" />
 </p>
 <p>
   <label>Soci&eacute;t&eacute;</label>
   <input name="societe" type="text" value="<?php echo $societe?>" />
 </p>
 <p>
   <label>Adresse</label>
   <input name="adresse" type="text" value="<?php echo  $adresse?>" />
 </p>
 <p>
   <label>Code postal</label>
   <input name="cp" type="text" value="<?php echo  $cp?>" />
 </p>
 <p>
   <label>Ville </label>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:user.php

示例12: CFunctions

<?php

/**
 * $Id$
 *  
 * @category ihe
 * @package  Mediboard
 * @author   SARL OpenXtrem <dev@openxtrem.com>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  $Revision$
 * @link     http://www.mediboard.org
 */
CCanDo::checkAdmin();
$function = new CFunctions();
$functions = $function->loadList();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("functions", $functions);
$smarty->display("configure.tpl");
开发者ID:fbone,项目名称:mediboard4,代码行数:19,代码来源:configure.php

示例13: CUser

     $unfound["user"][$mediuser->_user_last_name] = true;
 }
 // Profil
 if ($profil_name = $results[$i]["profil_name"]) {
     $profil = new CUser();
     $profil->user_username = $profil_name;
     $profil->loadMatchingObject();
     if ($profil->_id) {
         $mediuser->_profile_id = $profil->_id;
     } else {
         $unfound["profil_name"][$profil_name] = true;
     }
 }
 $group_id = CGroups::loadCurrent()->_id;
 // Fonction
 $function = new CFunctions();
 $function->group_id = $group_id;
 $function->text = $results[$i]["function_name"];
 $function->loadMatchingObject();
 if (!$function->_id) {
     if (in_array($results[$i]["type"], array("3", "4", "13"))) {
         $function->type = "cabinet";
     } else {
         $function->type = "administratif";
     }
     $function->color = "ffffff";
     $function->compta_partagee = 0;
     $function->consults_partagees = 1;
     $function->unescapeValues();
     $msg = $function->store();
     if ($msg) {
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:user_import_csv.php

示例14: getPerm

 /**
  * @see parent::getPerm()
  */
 function getPerm($permType)
 {
     if (!$this->_ref_function) {
         $this->loadRefsFwd();
     }
     return $this->_ref_function->getPerm($permType);
 }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:10,代码来源:CModePaiement.class.php

示例15: getPerm

 /**
  * @see parent::getPerm()
  */
 function getPerm($permType)
 {
     if (!($this->_ref_user || $this->_ref_function || $this->_ref_group) || !$this->_ref_object) {
         $this->loadRefsFwd();
     }
     $parentPerm = parent::getPerm($permType);
     if (!$this->_id) {
         return $parentPerm;
     }
     if ($this->_id && $this->author_id == CMediusers::get()->_id) {
         return $parentPerm;
     }
     if ($this->_ref_object->_id) {
         $parentPerm = $parentPerm && $this->_ref_object->getPerm($permType);
     } else {
         if ($this->_ref_user->_id) {
             $parentPerm = $parentPerm && $this->_ref_user->getPerm($permType);
         }
         if ($this->_ref_function->_id) {
             $parentPerm = $parentPerm && $this->_ref_function->getPerm($permType);
         }
         if ($this->_ref_group->_id) {
             $parentPerm = $parentPerm && $this->_ref_group->getPerm($permType);
         }
     }
     return $parentPerm;
 }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:30,代码来源:CCompteRendu.class.php


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