PHP Schema::getProfileFields Examples

PHP Schema::getProfileFields - 2 examples found. These are the top rated real world PHP examples of Schema::getProfileFields extracted from open source projects. You can rate examples to help us improve the quality of examples.
 /**
  * @param SchemaProperty $schema_property
  * @param int            $userId
  * @param Connection     $con
  *
  * @returns array Affected statements
  */
 public static function updateElementsFromForm(SchemaProperty $schema_property, $userId, $con = null)
 {
     $language = myActionTools::getEditLanguage();
     $fields = Schema::getProfileFields();
     //add parent_uri to fields
     $fields[] = "parent_uri";
     $affected = [];
     //iterate through the fields
     foreach ($fields as $key => $value) {
         //lookup each field in the array
         //if it's a match compare the values
         if ($key) {
             //if the new value is empty and the old value is not, delete the old value
             if ($key) {
             } else {
                 if ($key) {
                 }
             }
         } else {
         }
     }
     return $affected;
 }
 /**
  * alias for profile fields
  *
  * @return array The fields
  */
 public static function getProfileFields()
 {
     return Schema::getProfileFields();
 }