本文整理汇总了PHP中DAOFactory::getOrgDataFieldsDAO方法的典型用法代码示例。如果您正苦于以下问题:PHP DAOFactory::getOrgDataFieldsDAO方法的具体用法?PHP DAOFactory::getOrgDataFieldsDAO怎么用?PHP DAOFactory::getOrgDataFieldsDAO使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DAOFactory
的用法示例。
在下文中一共展示了DAOFactory::getOrgDataFieldsDAO方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testInsertOrgChannelField
public function testInsertOrgChannelField()
{
global $logger;
$logger = new ShopbookLogger();
$logger->enabled = true;
$logger->debug("Setting up PHP Unit Testing ...");
$orgDataField = new OrgDataField(4, 1, 2, "age", 4, 1, null, null, 2, $id = null);
$arr = DAOFactory::getOrgDataFieldsDAO()->insertOrgChannelField($orgDataField);
// Act
//$b = $a->negate();
// Assert
//$this->assertEquals(-1, $b->getAmount());
}
示例2: loadOrgDataFields
public static function loadOrgDataFields($orgId, $channelId)
{
global $logger;
self::$orgDataFieldDAO = DAOFactory::getOrgDataFieldsDAO();
$logger->debug("CHECK - Fetch OrgDataField Details with org_id: {$orgId} and channel_id: {$channelId}");
$orgDataFieldObjs = self::$orgDataFieldDAO->readAll($orgId, $channelId);
if (empty($orgDataFieldObjs)) {
$logger->debug('CHECK - Fetched OrgDataField: ' . $orgDataFieldObjs);
throw new OrgDataFieldNotFoundException($orgId, $channelName);
}
$logger->debug('CHECK - Fetched OrgDataField: ' . json_encode($orgDataFieldObjs));
return $orgDataFieldObjs;
}