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


PHP Staff::getPhone方法代码示例

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


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

示例1: update

 /**
  * bool update(Staff $staff)
  *
  * Update a staff member in the staff table.
  *
  * @param Staff $staff staff member to update
  * @return boolean returns false, if error occurs
  * @access public
  */
 function update($staff)
 {
     if (!$staff instanceof Staff) {
         $this->_error = "Argument is an inappropriate object.";
         return false;
     }
     // If changing login check to see if it already exists.
     /*if ($this->existLogin($staff->getLogin(), $staff->getIdMember()))
       {
         $this->_isError = true;
         $this->_error = "Login is already in use.";
         return false;
       }*/
     $sql = "UPDATE " . $this->_table . " SET " . "collegiate_number=?, " . "nif=?, " . "first_name=?, " . "surname1=?, " . "surname2=?, " . "address=?, " . "phone_contact=?, " . "login=? " . "WHERE id_member=?;";
     $params = array(urlencode($staff->getCollegiateNumber()), urlencode($staff->getNIF()), urlencode($staff->getFirstName()), urlencode($staff->getSurname1()), urlencode($staff->getSurname2()), urlencode($staff->getAddress()), urlencode($staff->getPhone()), urlencode($staff->getLogin()), $staff->getIdMember());
     return $this->exec($sql, $params);
 }
开发者ID:edubort,项目名称:openclinic-1,代码行数:26,代码来源:Staff.php

示例2:

    $staff->setSecName($_POST['secondname']);
    $staff->setAdress($_POST['adress']);
    $staff->setCity($_POST['city']);
    $staff->setJbg($_POST['jbg']);
    $staff->setEmail($_POST['email']);
    $staff->setPasswd($_POST['passwd']);
    $staff->setPhone($_POST['phone']);
    $staff->setMphone($_POST['mphone']);
    $staff->setIsStaff($is_staff);
    $staff->setImageUrl($image_url);
    $staff->setPhotoId($photo_id);
    $staff->setWorkPlace($_POST['work_place']);
    $staff->setSalary($_POST['salary']);
    $staff->setIsAdmin($is_admin);
    $staff->setEnabled($enabled);
    $id = $userDao->createStafs($staff->getName(), $staff->getSecName(), $staff->getAdress(), $staff->getCity(), $staff->getJbg(), $staff->getEmail(), $staff->getPasswd(), $staff->getPhone(), $staff->getMphone(), $staff->getIsStaff(), $staff->getImageUrl(), $staff->getPhotoId(), $staff->getWorkPlace(), $staff->getSalary(), $staff->getIsAdmin(), $staff->getEnabled());
}
//print_r("ID nakon createStafs iznosi: ".$id);
$resultsshow = $userDao->showUser($id);
$row = $resultsshow->fetch_assoc();
?>

<div class="main container-fluid">
    <div class="sectionShow">
        <div class="secimg">
            <img src="<?php 
echo $row['image_url'];
?>
" alt="User Photo" style="width:300px;height:200px">
        </div>
        <div class="secol">
开发者ID:GoranSubic,项目名称:smart-restoran,代码行数:31,代码来源:showUser.php


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