Changeset View
Changeset View
Standalone View
Standalone View
src/docs/contributor/phabricator_code_layout.diviner
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | - **DerpView**: view objects for the `Derp` application. Typically these | ||||
extend @{class:AphrontView}. | extend @{class:AphrontView}. | ||||
- **DerpConduitAPIMethod**: provides any and all `Derp` application | - **DerpConduitAPIMethod**: provides any and all `Derp` application | ||||
functionality that is accessible over Conduit. | functionality that is accessible over Conduit. | ||||
However, it is likely that `Derp` is even more complex, and rather than | However, it is likely that `Derp` is even more complex, and rather than | ||||
containing one class, each directory has several classes. A typical example | containing one class, each directory has several classes. A typical example | ||||
happens around the CRUD of an object: | happens around the CRUD of an object: | ||||
- **DerpBaseController**: typically extends @{class:PhabricatorController}, | - **DerpBaseController**: typically extends @{class:PhabricatorController} | ||||
implements `buildStandardPageResponse` with the `Derp` application name | and contains any controller-specific functionality used throughout the | ||||
and other `Derp`-specific meta-data, and contains any controller-specific | `Derp` application. | ||||
functionality used throughout the `Derp` application. | |||||
- **DerpDeleteController**: typically extends `DerpBaseController` and | - **DerpDeleteController**: typically extends `DerpBaseController` and | ||||
presents a confirmation dialogue to the user about deleting a `Derp`. | presents a confirmation dialogue to the user about deleting a `Derp`. | ||||
- **DerpEditController**: typically extends `DerpBaseController` and | - **DerpEditController**: typically extends `DerpBaseController` and | ||||
presents a form to create and edit `Derps`. Most likely uses | presents a form to create and edit `Derps`. Most likely uses | ||||
@{class:AphrontFormView} and various `AphrontFormXControl` classes such as | @{class:AphrontFormView} and various `AphrontFormXControl` classes such as | ||||
@{class:AphrontFormTextControl} to create the form. | @{class:AphrontFormTextControl} to create the form. | ||||
- **DerpListController**: typically extends `DerpBaseController` and displays | - **DerpListController**: typically extends `DerpBaseController` and displays | ||||
a set of one or more `Derps`. Might use @{class:AphrontTableView} to create | a set of one or more `Derps`. Might use @{class:AphrontTableView} to create | ||||
Show All 13 Lines |