コード例 #1
0
 /**
  * remove a class property
  * 
  * @param core_kernel_classes_Property $property            
  * @return bool
  */
 public function deleteClassProperty(core_kernel_classes_Property $property)
 {
     $indexes = $property->getPropertyValues(new core_kernel_classes_Property(INDEX_PROPERTY));
     //delete property and the existing values of this property
     if ($returnValue = $property->delete(true)) {
         //delete index linked to the property
         foreach ($indexes as $indexUri) {
             $index = new core_kernel_classes_Resource($indexUri);
             $returnValue = $this->deletePropertyIndex($index);
         }
     }
     return $returnValue;
 }