You are here

class i18n_path_object in Internationalization 7

Path object

Hierarchy

Expanded class hierarchy of i18n_path_object

1 string reference to 'i18n_path_object'
i18n_path_i18n_object_info in i18n_path/i18n_path.module
Implements hook_i18n_object_info().

File

i18n_path/i18n_path.inc, line 50
Internationalization (i18n) module - Translation set

View source
class i18n_path_object extends i18n_object_wrapper {

  /**
   * Get title from item
   */
  public function get_title() {
    return $this->object->path;
  }

  /**
   * Get path for item
   */
  public function get_path() {
    return check_url($this->object->path);
  }

  /**
   * Get translate mode
   */
  public function get_translate_mode() {
    return I18N_MODE_TRANSLATE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
i18n_object_wrapper::$key protected property
i18n_object_wrapper::$object protected property
i18n_object_wrapper::$translations protected property
i18n_object_wrapper::$type protected property
i18n_object_wrapper::get_edit_path function Get edit path for object 2
i18n_object_wrapper::get_field function Get field value from object/array
i18n_object_wrapper::get_index function Get string numeric key for indexing.
i18n_object_wrapper::get_info public function Get object info
i18n_object_wrapper::get_key function Get key value from object/array
i18n_object_wrapper::get_langcode public function Get language code
i18n_object_wrapper::get_object public function Get real object or array.
i18n_object_wrapper::get_placeholders protected function Get menu placehoders for object
i18n_object_wrapper::get_string_info public function Get object string translation info
i18n_object_wrapper::get_translate_access function Menu access callback for mixed translation tab
i18n_object_wrapper::get_translation_info public function Get object translation set info
i18n_object_wrapper::get_tsid function Get translation set id if any
i18n_object_wrapper::get_type public function Get object type
i18n_object_wrapper::load_object function Load real object or array. 1
i18n_object_wrapper::localize function Localize object if localizable.
i18n_object_wrapper::localize_access protected function Translate access (localize strings) 1
i18n_object_wrapper::path_replace protected function Replace path with placeholders
i18n_object_wrapper::set_field function Set field value to object/array
i18n_object_wrapper::set_tsid function Set translation set id
i18n_object_wrapper::translate function Translate object if translatable. 1
i18n_object_wrapper::translate_access protected function Translate access (translation sets) 2
i18n_object_wrapper::__construct public function Class constructor 2
i18n_path_object::get_path public function Get path for item Overrides i18n_object_wrapper::get_path
i18n_path_object::get_title public function Get title from item Overrides i18n_object_wrapper::get_title
i18n_path_object::get_translate_mode public function Get translate mode Overrides i18n_object_wrapper::get_translate_mode