General CRUD functionality framework in the fast backend in the icephp framework

Source: Internet
Author: User
This crud is not a curd in TP. The TP only completes the automatic operation of the data.

I want to complete the operation through the PHP configuration, automatic completion of the entire management background, all table Management Add/Modify/delete/search/multi-select operations.

Like scaffolding in Symfony, but I don't generate page code.

Instead, the runtime creates the output dynamically.


Here are the preliminary ideas that are being tried


0

Action of the Controller

Action

Complete the configuration of the entire crud

and call the processing method of the main Crud object

1

Main CRUD Class

Scrud

As a container for all CRUD partition objects

A bridge to message delivery for all crud partitioned objects

Log all configurations (assigned to specific partition object records)

Complete the master process (master specific Partition object processing)

2

Table structure Configuration Class

Scrudconfig

Mastering information for all fields in the entire table

Handle all static judgments about table fields

3

Search Bar Class

Scrudsearch

As a container for all search criteria objects

Complete the search for the display of the subject

Complete the processing of the search

3.1

Exact Match search Condition class

Scrudsearchequal

Generate performance for exact match search criteria

Create exact matching query criteria based on user request parameters

3.2

Fuzzy matching search Condition class

Scrudsearchlike

Generate Performance Content

Create a query condition

3.3

Date Search Condition Class

Scrudsearchdate

Generate Performance Content

Create a query condition

3.4

Single-Selection Search condition class

Scrudsearchradio

Generate Performance Content

Create a query condition

3.5

Check search Criteria Class

Scrudsearchcheck

Generate Performance Content

Create a query condition

3.6

Scope Search Condition Class

Scrudsearchrange

Generate Performance Content

Create a query condition

3.7

Date Range search Criteria class

Scrudsearchdaterange

Generate Performance Content

Create a query condition

3.8

Drop-down list search criteria class

Scrudsearchlist

Generate Performance Content

Create a query condition

3.9

Drop-down tree search condition class

Scrudsearchtree

Generate Performance Content

Create a query condition

4

New Configuration Class

Scrudinsert

As a container for all editable/non-editable Field objects

Generate a new record's performance content

Complete the processing of new records

5

Modifying the Configuration Class

Scrudupdate

As a container for all editable/non-editable Field objects

Generate the performance of an edit record

Completing the processing of editing records

6

View Configuration Classes

Scrudview

As a container for all non-editable field objects

Generate view details of the performance content

Complete the process of viewing details (return list)

7

To delete a configuration class

Scruddelete

Complete the processing of the delete operation (true delete or pseudo-delete)

8

Table Configuration Classes

Scrudgrid

Container to display fields as all lists

Generate Table Display content

8.1

Text Field class

Scrudgridtext

Generate a text field display

Additional features for generating text fields are displayed

8.2

Date Field class

Scrudgriddate

Generate display of field display and additional functions

8.3

Time Field Class

Scrudgridtime

Generate display of field display and additional functions

8.4

Picture Field class

Scrudgridimage

Generate display of field display and additional functions

9

Operation class

Scrudoperation

Log configuration information for all operations

As a container for all specific operations objects

Displays the performance of all actions, displayed by the specific Action object

9.1

Home Operation class

Scrudoperationindex

Complete the processing of the homepage operation

Call each related object to complete the first page display

9.2

Search Operation class

Scrudoperationsearch

Complete the processing of the search operation

Call each related object to complete the display of the search (Ajax)

9.3

New Action Class

Scrudoperationinsert

Show New Actions

Complete the processing of new operations

Announcement New Completion

9.4

Modifying an Action class

Scrudoperationupdate

Show Modify Action

To complete the processing of the modification operation

Show modify action (completed by modifying configuration Class)

9.5

Delete Action class

Scrudoperationdelete

Show Delete action

Complete the processing of the delete operation (completed by the Delete configuration Class)

9.6

Multi-Select Delete action class

Scrudoperationdeletemulti

Show multi-Select Delete action

Complete processing of the multi-Select delete operation (completed by the Delete configuration Class)

9.7

View Action Classes

Scrudoperationview

Show View Actions

Complete the processing of the view operation (completed by the View configuration Class)

9.8

Universal row-level operations

Scrudoperationrow

Displays a common row-level operation

Complete row-level operations on a record

9.9

Common table-level operations

Scrudoperationtable

Displays a common table-level operation

Handle this action

9.10

General multi-Select operation

Scrudoperationmulti

Displays a common multi-select operation

Handle this action

10

Pagination and Sorting classes

Scrudpage

Show paging, paging size, sort by, sort direction


11

Data Model Classes

Scrudmodel

Perform operations on the database on behalf of the entire CRUD system

These are the contents of the general CRUD framework in the quick backend in the icephp framework, and more about topic.alibabacloud.com (www.php.cn)!

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.