Project

General

Profile

Actions

Design #5785

closed

Rewrite field classes

Added by krileon over 8 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
15 February 2016
Due date:
% Done:

100%

Estimated time:

Description

A complete rewrite and move to CBLib of field classes needs to be done to allow fields to be further improved in functionality. A base field class that handles the base needs of a field like basic validation, etc.. should be used then a class for each type. Example structure as follows.

Field/Type/TextType.php
Field/Type/ListType.php (handles both single and multi case)
Field/Type/CheckboxType.php (handles both single and multi case)
Field/Type/RadioType.php (handles both single and multi case)
Field/Field.php

If one type is inheriting from another that can easily be done with extend like we're basically doing now, but more functionality is needed with better structure. Better control of individual field elements such as a function strictly for generating the options of a list fieldtype (see Joomlas list form usage) so plugins can replace only that aspect, etc.. Each output should probably have its own function (e.g. ->display and ->edit) to allow replacing strictly edit for example. Trigger functionality throughout is also needed.

Actions #1

Updated by krileon over 8 years ago

  • Precedes Feature proposal #4373: Merge CB Core Fields Ajax into core or implement alternative inline editing feature added
Actions #2

Updated by krileon over 8 years ago

  • Precedes deleted (Feature proposal #4373: Merge CB Core Fields Ajax into core or implement alternative inline editing feature)
Actions #3

Updated by krileon almost 8 years ago

  • Target version changed from CB 2.1 to CB 3.0
Actions #4

Updated by beat over 1 year ago

  • Status changed from Assigned to Resolved
  • Assignee changed from beat to krileon
  • Target version changed from CB 3.0 to CB 2.8
Actions #5

Updated by beat over 1 year ago

  • Subtask deleted (#2554)
Actions #6

Updated by beat over 1 year ago

  • Subtask deleted (#4865)
Actions #7

Updated by beat over 1 year ago

  • Subtask deleted (#1667)
Actions #8

Updated by beat over 1 year ago

  • Subtask deleted (#4373)
Actions #9

Updated by beat over 1 year ago

  • Subtask deleted (#4861)
Actions #10

Updated by beat over 1 year ago

  • Subtask deleted (#5786)
Actions #11

Updated by beat over 1 year ago

  • % Done changed from 0 to 100
Actions #12

Updated by beat over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF