<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*/
+
+/**
+ * Class CRM_Contact_Import_Field
+ */
class CRM_Contact_Import_Field {
/**#@+
*/
public $_relatedContactPhoneType;
+ /**
+ * @param $name
+ * @param $title
+ * @param int $type
+ * @param string $columnPattern
+ * @param string $dataPattern
+ * @param null $hasLocationType
+ * @param null $phoneType
+ * @param null $related
+ * @param null $relatedContactType
+ * @param null $relatedContactDetails
+ * @param null $relatedContactLocType
+ * @param null $relatedContactPhoneType
+ */
function __construct($name, $title, $type = CRM_Utils_Type::T_INT, $columnPattern = '//', $dataPattern = '//', $hasLocationType = NULL, $phoneType = NULL, $related = NULL, $relatedContactType = NULL, $relatedContactDetails = NULL, $relatedContactLocType = NULL, $relatedContactPhoneType = NULL) {
$this->_name = $name;
$this->_title = $title;
$this->_value = $value;
}
+ /**
+ * @return bool
+ */
function validate() {
// echo $this->_value."===========<br>";
$message = '';