本文整理汇总了PHP中Contacts::getPersonDetails方法的典型用法代码示例。如果您正苦于以下问题:PHP Contacts::getPersonDetails方法的具体用法?PHP Contacts::getPersonDetails怎么用?PHP Contacts::getPersonDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Contacts
的用法示例。
在下文中一共展示了Contacts::getPersonDetails方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: contactAction
/** View a contact's details
*/
public function contactAction()
{
if ($this->_getParam('format') == 'vcf') {
$this->_helper->layout->disableLayout();
//disable layout
$persons = new Contacts();
$this->view->persons = $persons->getPersonDetails($this->_getParam('id'));
} else {
$staffs = new Contacts();
$this->view->staffs = $staffs->getPersonDetails($this->_getParam('id'));
}
}
示例2: profileAction
/** Set up view for individual contact
*/
public function profileAction()
{
if ($this->_getParam('id', false)) {
$id = $this->_getParam('id');
$staffs = new Contacts();
$this->view->staffs = $staffs->getPersonDetails($id);
$findstotals = new Finds();
$this->view->findstotals = $findstotals->getFindsFloQuarter($id);
$periodtotals = new Finds();
$this->view->periodtotals = $periodtotals->getFindsFloPeriod($id);
} else {
throw new Pas_Exception_Param($this->_missingParameter);
}
}
示例3: profileAction
/** Profile page
* @access public
* @return void
* @throws Pas_Exception_Param
*/
public function profileAction()
{
if ($this->getParam('id', false)) {
$id = $this->getParam('id');
$staffs = new Contacts();
$this->view->persons = $staffs->getPersonDetails($id);
$this->view->findstotals = $this->getFinds()->getFindsFloQuarter($id);
$this->view->periodtotals = $this->getFinds()->getFindsFloPeriod($id);
$accts = new OnlineAccounts();
$this->view->accts = $accts->getAccounts($id);
} else {
throw new Pas_Exception_Param($this->_missingParameter, 500);
}
}