Source for file classes_descriptor.php

Documentation is available at classes_descriptor.php

  1. <?php
  2.  
  3. class descriptor extends b_object {
  4. //NOTE - object type definition "user types"
  5. var $name;
  6. var $description;
  7.  
  8. function descriptor( $constructID = NULL ) {
  9. parent::b_object( $constructID, 'descriptors' );
  10. }
  11. //NOTE: these functions are here to overload the base class functions if special data validation etc is needed
  12. //function &get_attribute( $attribute ) { }
  13. //function set_attribute( $attribute, $value ) { }
  14. //function set( $values ) { }
  15. //function set_db( $values ) { }
  16. //function set_object( $values ) { }
  17. //function delete() { }
  18. function get_contents( $navArray = NULL ) {
  19. //format navigation array
  20. //format object diplay fields
  21. $rawFieldArray = $this->type->get_attribute( 'type_object_field_list' );
  22. return parent::get_contents( $navArray, $rawFieldArray );
  23. }
  24.  
  25. function get_index() {
  26. if( $this->name ) {
  27. $objectIndex = $this->name;
  28. } else {
  29. $objectIndex = "new descriptor";
  30. }
  31. return $objectIndex;
  32. }
  33.  
  34. function verify_set( $post ) {
  35. //verifies data before setting the object's values - returns an error array if problems are found
  36. //if( !count($returnArray) ) {
  37. //THIS IS CRITICAL if you want to be able to relate things to the object
  38. parent::verify_set( $post );
  39. //} else {
  40. //$GLOBALS['errorArray'] = $returnArray;
  41. //$this->set_object( $post );
  42. //}
  43. }
  44. }
  45.  
  46. ?>

Documentation generated on Tue, 24 May 2005 03:56:56 -0400 by phpDocumentor 1.3.0RC3