public function deleteClassProperty(\core_kernel_classes_Property $property)
    {
        $indexes = $property->getPropertyValues(new \core_kernel_classes_Property(OntologyIndex::PROPERTY_INDEX));

        //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;
    }
public function deleteClassProperty(\core_kernel_classes_Property $property)
    {
        $indexes = $property->getPropertyValues(new \core_kernel_classes_Property(OntologyIndex::PROPERTY_INDEX));

        //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;
    }
public function deleteClassProperty ( \ core_kernel_classes_Property $ property ) { $ indexes = $ property -> getPropertyValues ( new \ core_kernel_classes_Property ( OntologyIndex :: PROPERTY_INDEX ) ) ; //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 ; }
remove a class property

@param \core_kernel_classes_Property $property
@return bool
@throws \common_exception_Error
remove a class property