public function remove($type, $key, $remainingFields = array())
    {
        // Load
        $json = $this->load();

        // Remove
        $columns = $json[$type]["elements"][$key]["columns"];
        unset($json[$type]["elements"][$key]);
        if (is_array($columns)) {
            foreach ($columns as $field) {
                $json = $this->removeField($type, $field, $json, $remainingFields);
            }
        }
        $this->sortJson($json);
        $this->write($json);
    }
public function remove($type, $key, $remainingFields = array())
    {
        // Load
        $json = $this->load();

        // Remove
        $columns = $json[$type]["elements"][$key]["columns"];
        unset($json[$type]["elements"][$key]);
        if (is_array($columns)) {
            foreach ($columns as $field) {
                $json = $this->removeField($type, $field, $json, $remainingFields);
            }
        }
        $this->sortJson($json);
        $this->write($json);
    }
public function remove ( $ type , $ key , $ remainingFields = array ( ) ) { // Load $ json = $ this -> load ( ) ; // Remove $ columns = $ json [ $ type ] [ "elements" ] [ $ key ] [ "columns" ] ; unset ( $ json [ $ type ] [ "elements" ] [ $ key ] ) ; if ( is_array ( $ columns ) ) { foreach ( $ columns as $ field ) { $ json = $ this -> removeField ( $ type , $ field , $ json , $ remainingFields ) ; } } $ this -> sortJson ( $ json ) ; $ this -> write ( $ json ) ; }
Removes Content-Element

@param string $type
@param string $key
@param array $remainingFields
Removes Content - Element