code/models/PostcardMetadataField.php
/**
     * Deletes all the current items for a dropdown.
     */
Deletes all the current items for a dropdown.
Deletes all the current items for a dropdown .
protected function deleteCurrentItems()
    {
        $sql = new SQLQuery();
        $sql->setFrom('DropdownEntry');
        $sql->addWhere(array('PostcardMetadataFieldID' => $this->ID));
        $sql->setDelete(true);
        $result = $sql->execute();
        return $result;
    }
protected function deleteCurrentItems ( ) { $ sql = new SQLQuery ( ) ; $ sql -> setFrom ( 'DropdownEntry' ) ; $ sql -> addWhere ( array ( 'PostcardMetadataFieldID' => $ this -> ID ) ) ; $ sql -> setDelete ( true ) ; $ result = $ sql -> execute ( ) ; return $ result ; }
Deletes all the current items for a dropdown.
Deletes all the current items for a dropdown .