*/
class CRM_Core_BAO_CustomValueTable {
+ /**
+ * @param $customParams
+ *
+ * @throws Exception
+ */
static function create(&$customParams) {
if (empty($customParams) ||
!is_array($customParams)
*
* @param string $type the civicrm type string
*
+ * @param int $maxLength
+ *
* @return the mysql data store placeholder
* @access public
* @static
}
}
+ /**
+ * @param $params
+ * @param $entityTable
+ * @param $entityID
+ */
static function store(&$params, $entityTable, $entityID) {
$cvParams = array();
foreach ($params as $fieldID => $param) {
}
}
+ /**
+ * @param $params
+ * @param $customFields
+ * @param $entityTable
+ * @param $entityID
+ * @param $customFieldExtends
+ */
static function postProcess(&$params, &$customFields, $entityTable, $entityID, $customFieldExtends) {
$customData = CRM_Core_BAO_CustomField::postProcess($params,
$customFields,
*
* @array $params
*
+ * @param $params
+ *
+ * @throws Exception
* @return array
* @static
*/
'is_multiple' => $dao->is_multiple,
);
+ if ($cvParam['type'] == 'File') {
+ $cvParam['file_id'] = $fieldValue['value'];
+ }
+
if (!array_key_exists($dao->table_name, $cvParams)) {
$cvParams[$dao->table_name] = array();
}
*
* @array $params
*
+ * @param $params
+ *
+ * @throws Exception
* @return array
* @static
*/