Merge pull request #4979 from xurizaemon/codingstandards-12
[civicrm-core.git] / CRM / Contact / Import / Field.php
index 0391865bb01aff36987f43fb43ca9903fc93bec5..535e179a4c496785e7c7efae24979fb88a5728ff 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -31,7 +31,6 @@
 class CRM_Contact_Import_Field {
 
   /**#@+
-   * @access protected
    * @var string
    */
 
@@ -143,7 +142,7 @@ class CRM_Contact_Import_Field {
    * @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) {
+  public 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->_type = $type;
@@ -160,7 +159,7 @@ class CRM_Contact_Import_Field {
     $this->_value = NULL;
   }
 
-  function resetValue() {
+  public function resetValue() {
     $this->_value = NULL;
   }
 
@@ -168,14 +167,14 @@ class CRM_Contact_Import_Field {
    * The value is in string format. convert the value to the type of this field
    * and set the field value with the appropriate type
    */
-  function setValue($value) {
+  public function setValue($value) {
     $this->_value = $value;
   }
 
   /**
    * @return bool
    */
-  function validate() {
+  public function validate() {
     //  echo $this->_value."===========<br>";
     $message = '';
 
@@ -193,4 +192,3 @@ class CRM_Contact_Import_Field {
     }
   }
 }
-