本文整理匯總了PHP中DAOFactory::getWorkersDAO方法的典型用法代碼示例。如果您正苦於以下問題:PHP DAOFactory::getWorkersDAO方法的具體用法?PHP DAOFactory::getWorkersDAO怎麽用?PHP DAOFactory::getWorkersDAO使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DAOFactory
的用法示例。
在下文中一共展示了DAOFactory::getWorkersDAO方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: rtrim
function __construct()
{
global $configs;
$this->baseUrl = $configs["BLUETEAM_BASE_URL"];
$this->agentBaseUrl = $configs["BLUETEAM_AGENT_BASE_URL"];
$this->url = rtrim($this->baseUrl, "/") . $_SERVER[REQUEST_URI];
global $logger;
$this->logger = $logger;
$this->logger->debug("BaseController started");
if (isset($_SESSION["uuid"])) {
$this->uuid = $_SESSION["uuid"];
$this->username = $_SESSION["username"];
$this->firstName = $_SESSION['first_name'];
$this->lastName = $_SESSION['last_name'];
}
$DAOFactory = new DAOFactory();
$this->employeeDAO = $DAOFactory->getEmployeesDAO();
$this->workerDAO = $DAOFactory->getWorkersDAO();
$this->serviceRequestDAO = $DAOFactory->getServiceRequestDAO();
$this->agentDAO = $DAOFactory->getAgentDAO();
$this->getInTouchDAO = $DAOFactory->getInTouchDAO();
$this->userDAO = $DAOFactory->getUsersDAO();
$this->serviceDAO = $DAOFactory->getServicesDAO();
$this->process();
}
示例2: __construct
public function __construct()
{
$DAOFactory = new DAOFactory();
$this->workersDAO = $DAOFactory->getWorkersDAO();
}