tion delete($application, $section, $referenceKey = null) { $attributes = array( "application" => $application, "section" => $section, "isSystem" => 0 ); if ($referenceKey !== null) { $attributes['referencekey'] = $referenceKey; } self::$tableSectionStorage->deleteByAttributes($attributes); return true; } public static function deleteById($id) { self::$tableSectionStorage->deleteByAttributes(array( "id" => $id, "isSystem" => 0 )); return true; } } new Section();