SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 109 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


There are a great many different tasks that we might want our controller to be able to
handle. This table identifies the common task and method names we use to identify
tasks (we are not limited to these; we can use others if we want to):
Task/Method Description
add Create a new item.
apply Apply changes to an item and return to the edit view.
archive
Archive an item. Most components do not implement archiving:
for an example of a component that does, you can study the core
content component.
assign Assign an item to something.
cancel Cancel the current task.
default Make an item the default item.
publish Publish an item.
Chapter 4
[ 81 ]
Task/Method Description
remove Delete an item.
save Save an item and return to a list of items.
unarchive Un-archive an item.
unpublish Un-publish an item.
Imagine we want the controller to be able to deal with a save task. To do this we
need to implement a method that will deal with the task. For the sake of simplicity
we will name the method save(). This is an example of how we might implement
the method.


Pages:
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6