• Publicity: Public Only All

object-type-procs.tcl

Supporting procs for ACS Object Types

Location:
packages/acs-tcl/tcl/object-type-procs.tcl
Created:
August 13, 2000
Author:
Yonatan Feldman <yon@arsdigita.com>
CVS Identification:
$Id: object-type-procs.tcl,v 1.15.2.2 2022/08/08 14:48:48 gustafn Exp $

Procedures in this file

Detailed information

acs_object_type::get (public)

 acs_object_type::get -object_type object_type -array array

Get info about an object type. Returns columns

  • object_type,
  • supertype,
  • abstract_p,
  • pretty_name,
  • pretty_plural,
  • table_name,
  • id_column,
  • package_name,
  • name_method,
  • type_extension_table,
  • dynamic_p

Switches:
-object_type
(required)
-array
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_subsite_group_type acs_subsite_group_type (test acs-subsite) acs_object_type::get acs_object_type::get test_acs_subsite_group_type->acs_object_type::get acs_object_type::supertype acs_object_type::supertype (private) acs_object_type::get->acs_object_type::supertype db_1row db_1row (public) acs_object_type::get->db_1row content::item::get content::item::get (public) content::item::get->acs_object_type::get package_create package_create (private) package_create->acs_object_type::get package_create_attribute_list package_create_attribute_list (private) package_create_attribute_list->acs_object_type::get package_generate_body package_generate_body (private) package_generate_body->acs_object_type::get package_generate_spec package_generate_spec (private) package_generate_spec->acs_object_type::get

Testcases:
acs_subsite_group_type

acs_object_type::get_table_name (public)

 acs_object_type::get_table_name -object_type object_type

Return the table name associated with an object_type. Allow caching of the table_name as it is unlikely to change without a restart of the server (which is mandatory after an upgrade)

Switches:
-object_type
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_object_type_table_name object_type_table_name (test acs-tcl) acs_object_type::get_table_name acs_object_type::get_table_name test_object_type_table_name->acs_object_type::get_table_name acs_object_type::get_table_name_not_cached acs_object_type::get_table_name_not_cached (private) acs_object_type::get_table_name->acs_object_type::get_table_name_not_cached util_memoize util_memoize (public) acs_object_type::get_table_name->util_memoize content::get_content content::get_content (public) content::get_content->acs_object_type::get_table_name content::item::get content::item::get (public) content::item::get->acs_object_type::get_table_name content::item::get_revision_content content::item::get_revision_content (public) content::item::get_revision_content->acs_object_type::get_table_name content::revision::new content::revision::new (public) content::revision::new->acs_object_type::get_table_name

Testcases:
object_type_table_name

acs_object_type_hierarchy (public)

 acs_object_type_hierarchy [ -object_type object_type ] \
    [ -indent_string indent_string ] [ -indent_width indent_width ] \
    [ -join_string join_string ] [ -additional_html additional_html ]

Returns an HTML snippet representing a hierarchy of ACS Object Types

Switches:
-object_type
(optional)
the object type for which to show a hierarchy for.
-indent_string
(defaults to "&nbsp;") (optional)
string with which to lpad
-indent_width
(defaults to "4") (optional)
number of times to insert indent_string into indentation
-join_string
(defaults to "<br>") (optional)
string with which to join each row returned by the query
-additional_html
(optional)
any additional html you might want to print per line
Author:
Yonatan Feldman <yon@arsdigita.com>
Created:
August 13, 2000

Partial Call Graph (max 5 caller/called nodes):
%3 test_object_type_hierarchy object_type_hierarchy (test acs-tcl) acs_object_type_hierarchy acs_object_type_hierarchy test_object_type_hierarchy->acs_object_type_hierarchy db_foreach db_foreach (public) acs_object_type_hierarchy->db_foreach db_map db_map (public) acs_object_type_hierarchy->db_map export_vars export_vars (public) acs_object_type_hierarchy->export_vars lang::util::localize lang::util::localize (public) acs_object_type_hierarchy->lang::util::localize packages/acs-subsite/www/admin/object-types/index.tcl packages/acs-subsite/ www/admin/object-types/index.tcl packages/acs-subsite/www/admin/object-types/index.tcl->acs_object_type_hierarchy packages/acs-subsite/www/admin/object-types/one.tcl packages/acs-subsite/ www/admin/object-types/one.tcl packages/acs-subsite/www/admin/object-types/one.tcl->acs_object_type_hierarchy

Testcases:
object_type_hierarchy
[ show source ]