Changeset 195 for trunk/trax/vendor/trax/action_view
- Timestamp:
- 04/03/06 16:27:26 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/action_view/helpers/active_record_helper.php
r152 r195 27 27 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 28 28 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 29 */30 31 /**32 29 * 33 30 * @package PHPonTrax 31 */ 32 33 /** 34 * @todo Document this class 34 35 */ 35 36 class ActiveRecordHelper extends Helpers { 36 37 38 /** 39 * 40 */ 37 41 public $scaffolding = 0; 38 42 … … 42 46 * input("post", "title") => 43 47 * <input id="post_title" name="post[title]" size="30" type="text" value="Hello World" /> 48 * @uses to_tag() 44 49 */ 45 50 function input($object_name, $attribute_name, $options = array()) { … … 48 53 49 54 /** 50 * 55 * @todo Document this method 56 * @uses to_scaffold_tag() 51 57 */ 52 58 function input_scaffolding($object_name, $attribute_name, $options = array()) { … … 90 96 * collection_select("department", "id", $departments, "id", "name")) 91 97 * ) 98 * @uses all_input_tags() 99 * @uses content_tag() 92 100 */ 93 101 function form($record_name, $options = array()) { … … 117 125 * <?= error_message_on "post", "title", "Title simply ", " (or it won't work)", "inputError" ?> => 118 126 * <div class="inputError">Title simply can't be empty (or it won't work)</div> 127 * @uses attribute_name 128 * @uses controller_object 129 * @uses content_tag() 130 * @uses object_name 119 131 */ 120 132 function error_message_on($object_name, $attribute_name, $prepend_text = "", $append_text = "", $css_class = "formError") { … … 158 170 159 171 /** 160 * 172 * @todo Document this method 161 173 */ 162 174 function all_input_tags($record, $record_name, $options) { … … 178 190 179 191 /** 180 * 192 * @todo Document this method 193 * @uses scaffolding 181 194 */ 182 195 function default_input_block() { … … 189 202 190 203 /** 191 * 204 * @todo Document this method 192 205 */ 193 206 function to_tag($object_name, $attribute_name, $options = array()) { … … 231 244 232 245 /** 233 * 246 * @todo Document this method 234 247 */ 235 248 function to_scaffold_tag($object_name, $attribute_name, $options = array()) { … … 263 276 $results = "boolean_select(\"$object_name\", \"$attribute_name\")"; 264 277 break; 278 default: 279 echo "default case from ".$this->column_type()."\n"; 265 280 } 266 281 if(count($this->object()->errors)) { … … 271 286 272 287 /** 273 * 288 * @todo Document this method 274 289 */ 275 290 function tag_without_error_wrapping() { … … 279 294 280 295 /** 281 * 296 * @todo Document this method 282 297 */ 283 298 function tag($name, $options = array()) { … … 290 305 291 306 /** 292 * 307 * @todo Document this method 293 308 */ 294 309 function content_tag_without_error_wrapping() { … … 298 313 299 314 /** 300 * 315 * @todo Document this method 301 316 */ 302 317 function content_tag($name, $value, $options = array()) { … … 309 324 310 325 /** 311 * 326 * @todo Document this method 312 327 */ 313 328 function to_date_select_tag_without_error_wrapping() { … … 318 333 319 334 /** 320 * 335 * @todo Document this method 321 336 */ 322 337 function to_date_select_tag($options = array()) { … … 329 344 330 345 /** 331 * 346 * @todo Document this method 332 347 */ 333 348 function to_datetime_select_tag_without_error_wrapping() { … … 338 353 339 354 /** 340 * 355 * @todo Document this method 341 356 */ 342 357 function to_datetime_select_tag($options = array()) { … … 349 364 350 365 /** 351 * 366 * @todo Document this method 352 367 */ 353 368 function error_wrapping($html_tag, $has_error) { … … 356 371 357 372 /** 358 * 373 * @todo Document this method 359 374 */ 360 375 function error_message() { … … 363 378 364 379 /** 365 * 380 * @todo Document this method 366 381 */ 367 382 function column_type() { … … 421 436 } 422 437 438 // -- set Emacs parameters -- 439 // Local variables: 440 // tab-width: 4 441 // c-basic-offset: 4 442 // c-hanging-comment-ender-p: nil 443 // indent-tabs-mode: nil 444 // End: 423 445 ?>
