本文整理汇总了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());