本文整理匯總了PHP中UserFactory::setTitle方法的典型用法代碼示例。如果您正苦於以下問題:PHP UserFactory::setTitle方法的具體用法?PHP UserFactory::setTitle怎麽用?PHP UserFactory::setTitle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UserFactory
的用法示例。
在下文中一共展示了UserFactory::setTitle方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: flush
if ($clf->getRecordCount() > 0) {
echo 'Company: ' . $clf->getCurrent()->getName() . "\n";
ob_flush();
flush();
sleep(2);
}
unset($clf);
}
$uf = new UserFactory();
//Start with user default values.
$udlf = new UserDefaultListFactory();
$udlf->getByCompanyId($mapped_row['company_id']);
if ($udlf->getRecordCount() > 0) {
Debug::Text('Using User Defaults', __FILE__, __LINE__, __METHOD__, 10);
$udf_obj = $udlf->getCurrent();
$uf->setTitle($udf_obj->getTitle());
$uf->setCity($udf_obj->getCity());
if ($udf_obj->getProvince() != '' and $udf_obj->getProvince() != 0) {
$uf->setProvince($udf_obj->getProvince());
}
if ($udf_obj->getCountry() != '') {
$uf->setCountry($udf_obj->getCountry());
}
$uf->setWorkPhone($udf_obj->getWorkPhone());
$uf->setWorkPhoneExt($udf_obj->getWorkPhoneExt());
$uf->setWorkEmail($udf_obj->getWorkEmail());
$uf->setHireDate($udf_obj->getHireDate());
$uf->setDefaultBranch($udf_obj->getDefaultBranch());
$uf->setDefaultDepartment($udf_obj->getDefaultDepartment());
if ($udf_obj->getPermissionControl() != '') {
$uf->setPermissionControl($udf_obj->getPermissionControl());