function _define_actions() { return array( 'display' => array( 'permissions_required' => 'r', 'template_path' => '/user_groups_folder/display.html' ), 'create_user_group' => array( 'permissions_required' => 'w', 'template_path' => '/user_group/create.html', 'action_path' => '/user_group/create_user_group_action', 'JIP' => true, 'popup' => true, 'img_src' => '/shared/images/new.folder.gif', 'action_name' => strings :: get('create_user_group', 'user_group'), ), 'edit' => array( 'permissions_required' => 'w', 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/site_object/edit_action', 'template_path' => '/site_object/edit.html', 'img_src' => '/shared/images/edit.gif' ), ); }
function _define_actions() { return array( 'display' => array( 'template_path' => '/version/display.html', ), 'recover' => array( 'action_path' => '/version/recover_version_action', 'popup' => true ), 'edit' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/site_object/edit_action', 'template_path' => '/site_object/full_edit.html', 'img_src' => '/shared/images/edit.gif' ), 'delete' => array( 'JIP' => true, 'popup' => true, 'action_name' => strings :: get('delete'), 'action_path' => 'form_delete_site_object_action', 'template_path' => '/site_object/delete.html', 'img_src' => '/shared/images/rem.gif' ), ); }
function _define_actions() { return array( 'events_list' => array( 'template_path' => '/stats_event/events_list.html', 'action_name' => strings :: get('show_events_list', 'stats'), 'action_path' => '/stats_event/stats_event_filter_action', ), 'edit' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/site_object/edit_action', 'template_path' => '/site_object/edit.html', 'img_src' => '/shared/images/edit.gif' ), 'delete' => array( 'JIP' => true, 'popup' => true, 'action_name' => strings :: get('delete'), 'action_path' => 'form_delete_site_object_action', 'template_path' => '/site_object/delete.html', 'img_src' => '/shared/images/rem.gif' ), ); }
function login_object_controller() { $this->_actions = array( 'login' => array( 'permissions_required' => 'r', 'action_path' => 'login_action', 'template_path' => 'login.html' ), 'logout' => array( 'permissions_required' => 'r', 'action_path' => 'logout_action', ), 'edit' => array( 'permissions_required' => 'w', 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/site_object/edit_action', 'template_path' => '/site_object/edit.html', 'img_src' => '/shared/images/edit.gif' ), 'change_user_locale' => array( 'permissions_required' => 'w', 'popup' => true, 'action_name' => strings :: get('change_locale', 'user'), 'action_path' => '/user/change_user_locale_action', ), ); parent :: site_object_controller(); }
function _define_actions() { return array( 'display' => array( 'template_path' => '/search/display.html', 'transaction' => false, ), 'fulltext_search' => array( 'template_path' => '/search/fulltext_search.html', 'transaction' => false, 'action_path' => '/search_action' ), 'edit' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/site_object/edit_action', 'template_path' => '/site_object/edit.html', 'img_src' => '/shared/images/edit.gif' ), 'delete' => array( 'JIP' => true, 'popup' => true, 'action_name' => strings :: get('delete'), 'action_path' => 'form_delete_site_object_action', 'template_path' => '/site_object/delete.html', 'img_src' => '/shared/images/rem.gif' ), ); }
function _define_actions() { return array( 'admin_display' => array( 'template_path' => '/admin_page/admin_display.html', 'transaction' => false, ), 'edit' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/site_object/edit_action', 'template_path' => '/site_object/edit.html', 'icon' => 'edit' ), 'register_new_object' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('register_new_object'), 'action_path' => '/site_object/register_new_object_action', 'template_path' => '/site_object/register_new_object.html', 'icon' => 'activate' ) ); }
function check($value) { $value = "$value"; if(!preg_match("~^[a-zA-Z]\d[a-zA-Z]\s?\d[a-zA-Z]\d$~", $value)) $this->error(strings :: get('error_invalid_zip_format', 'error')); }
function render_image_select() { $id = $this->get_attribute('id'); $md5id = substr(md5($id), 0, 5); $image_node_id = $this->get_value(); $start_path = ''; if ($image_node_id && ($image_data = fetch_one_by_node_id($image_node_id))) { $span_name = $image_data['identifier']; $start_path = '/root?action=image_select&node_id=' . $image_data['parent_node_id']; } else { $span_name = ''; } if (!$start_path) { $start_path = $this->get_attribute('start_path'); if (!$start_path) { $start_path = session::get('limb_image_select_working_path'); } if (!$start_path) { $start_path = '/root/images'; } $start_path .= '?action=image_select'; } echo "<span id='{$md5id}_name'>{$span_name}</span><br><img id='{$md5id}_img' src='/shared/images/1x1.gif'/>\n <script type='text/javascript'>\n var image_select_{$md5id};\n\n function init_image_select_{$md5id}()\n {\n image_select_{$md5id} = new image_select('{$id}', '{$md5id}');\n image_select_{$md5id}.set_start_path('{$start_path}');\n image_select_{$md5id}.generate();\n }\n\n function image_select_{$md5id}_insert_image(image)\n {\n image_select_{$md5id}.insert_image(image);\n }\n\n function image_select_{$md5id}_get_image()\n {\n return image_select_{$md5id}.get_image();\n }\n\n function image_reset_{$md5id}()\n {\n image_select_{$md5id}.id_container.value = 0;\n init_image_select_{$md5id}();\n }\n\n add_event(window, 'load', init_image_select_{$md5id});\n </script>"; echo "<br><br><input class='button' type='button' onclick='popup(\"/root/tools/image_select?properties=0\", null, null, false, image_select_{$md5id}_insert_image, image_select_{$md5id}_get_image)' value='" . strings::get('select_image', 'image') . "'>"; echo ' '; echo "<input class='button' type='button' onclick='image_reset_{$md5id}()' value='" . strings::get('reset') . "'>"; }
function _define_actions() { return array( 'display' => array( 'template_path' => '/pricelist_folder/display.html' ), 'admin_display' => array( 'template_path' => '/pricelist_folder/admin_display.html' ), 'set_metadata' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('set_metadata'), 'action_path' => '/site_object/set_metadata_action', 'template_path' => '/site_object/set_metadata.html', 'icon' => 'configure' ), 'create_pricelist_object' => array( 'template_path' => '/pricelist_object/create.html', 'action_path' => '/pricelist_object/create_pricelist_object_action', 'JIP' => true, 'popup' => true, 'icon' => 'new.generic', 'action_name' => strings :: get('create_pricelist_object', 'pricelist'), 'can_have_access_template' => true, ), 'edit' => array( 'template_path' => '/site_object/edit.html', 'action_path' => '/site_object/edit_action', 'popup' => true, 'JIP' => true, 'icon' => 'edit', 'action_name' => strings :: get('edit_pricelist_folder', 'pricelist'), ), 'publish' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('publish'), 'action_path' => '/doc_flow_object/set_publish_status_action', 'icon' => 'publish', 'can_have_access_template' => true, ), 'unpublish' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('unpublish'), 'action_path' => '/doc_flow_object/set_publish_status_action', 'icon' => 'unpublish', 'can_have_access_template' => true, ), 'delete' => array( 'JIP' => true, 'popup' => true, 'action_name' => strings :: get('delete_pricelist_folder', 'pricelist'), 'action_path' => 'form_delete_site_object_action', 'template_path' => '/site_object/delete.html', 'icon' => 'delete' ), ); }
function _define_actions() { return array( 'display' => array( 'action_path' => '/feedback_object/send_feedback_action', 'template_path' => '/feedback_object/display.html' ), 'admin_display' => array( 'template_path' => '/feedback_object/admin_display.html' ), 'edit' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit_feedback_content', 'feedback'), 'action_path' => '/feedback_object/edit_feedback_action', 'template_path' => '/feedback_object/edit.html', 'img_src' => '/shared/images/edit.gif' ), 'delete' => array( 'JIP' => true, 'popup' => true, 'action_name' => strings :: get('delete'), 'action_path' => 'form_delete_site_object_action', 'template_path' => '/site_object/delete.html', 'img_src' => '/shared/images/rem.gif' ), ); }
function prepare() { $params = array(); $params['id'] = $this->get('node_id'); $params['action'] = 'order'; $params['rn'] = time(); $params['popup'] = 1; $this->set('order_up_alt', strings :: get('order_up')); $this->set('order_down_alt', strings :: get('order_down')); if (!$this->get('is_first_child')) { $params['direction'] = 'up'; $this->set('order_up_href', add_url_query_items($_SERVER['PHP_SELF'], $params)); } else $this->set('order_up_href', ''); if (!$this->get('is_last_child')) { $params['direction'] = 'down'; $this->set('order_down_href', add_url_query_items($_SERVER['PHP_SELF'], $params)); } else $this->set('order_down_href', ''); return parent :: prepare(); }
/** * Performs validation * * @param dataspace $ - data to validate * @param error_list $ * @return boolean TRUE if validation passed * @access public */ function validate(&$dataspace) { $value = $dataspace->get($this->field_name); if (!isset($value) || $value === '') { $this->error(strings::get('error_required', 'error')); } }
function _define_actions() { return array( 'display' => array( 'permissions_required' => 'r', 'template_path' => '/news_folder/display.html' ), 'admin_display' => array( 'permissions_required' => 'rw', 'template_path' => '/news_folder/admin_display.html' ), 'create_news' => array( 'permissions_required' => 'w', 'template_path' => '/news_object/create.html', 'action_path' => '/news/create_news_action', 'JIP' => true, 'popup' => true, 'img_src' => '/shared/images/new.generic.gif', 'action_name' => strings :: get('create_newsline', 'newsline'), 'can_have_access_template' => true, ), 'edit' => array( 'permissions_required' => 'w', 'template_path' => '/news_folder/edit.html', 'action_path' => '/news_folder/edit_news_folder_action', 'popup' => true, 'JIP' => true, 'img_src' => '/shared/images/edit.gif', 'action_name' => strings :: get('edit_news_folder', 'newsline'), ), ); }
function init_richedit() { $this->_load_js_script(); $id = $this->get_attribute('id'); if ($_COOKIE['use_textarea_instead_of_richedit']) { $caption = strings::get('use_richedit_instead_of_textarea', 'common'); } else { $caption = strings::get('use_textarea_instead_of_richedit', 'common'); } echo "<table cellpadding=0 cellspacing=0>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><button id='{$id}_button' class='button' onclick='toggle_richedit_textarea();window.location.reload();return false;' style='display:none'>{$caption}</button></td>\n\t\t\t\t\t\t<td nowrap> " . strings::get('richedit_textarea_warning', 'common') . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t </table>"; if ($this->get_attribute('mode') == 'light') { $init_function = 'install_limb_lite_extension(editor.config);'; } else { $init_function = 'install_limb_full_extension(editor.config);editor.registerPlugin(TableOperations);'; } if (!$this->get_attribute('rows')) { $this->set_attribute('rows', RICHEDIT_DEFAULT_ROWS); } if (!$this->get_attribute('cols')) { $this->set_attribute('cols', RICHEDIT_DEFAULT_COLS); } if (!($width = $this->get_attribute('width'))) { $width = RICHEDIT_DEFAULT_WIDTH; } if (!($height = $this->get_attribute('height'))) { $height = RICHEDIT_DEFAULT_HEIGHT; } echo "\n <script type='text/javascript' defer='defer'>\n \r\n function init_richedit_{$id}()\r\n {\r\n\t \tvar editor = new HTMLArea('{$id}');\n\t \t\n\t \tif(typeof(editor.config) == 'undefined')\n\t \t\treturn;\n\n\t \t{$init_function}\n\t \t\n editor.config.width = '{$width}';\r\n editor.config.height = '{$height}'; \t \t\r\n\n\t c = get_cookie('use_textarea_instead_of_richedit');\n\t\n\t if(c != 1)\n\t editor.generate();\n \n document.getElementById('{$id}_button').style.display = 'block';\n }\n \n add_event(window, 'load', init_richedit_{$id}); \n \r\n </script>"; }
function _define_actions() { return array( 'display' => array( 'permissions_required' => 'r', 'action_path' => '/files/display_file_action', ), 'edit' => array( 'permissions_required' => 'w', 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/files/edit_file_action', 'template_path' => '/file/edit.html', 'img_src' => '/shared/images/edit.gif' ), 'delete' => array( 'permissions_required' => 'w', 'JIP' => true, 'popup' => true, 'action_name' => strings :: get('delete'), 'action_path' => 'form_delete_site_object_action', 'template_path' => '/site_object/delete.html', 'img_src' => '/shared/images/rem.gif' ), ); }
function _define_actions() { return array( 'admin_display' => array( 'template_path' => '/subscribe/admin_display.html' ), 'create_subscribe_theme' => array( 'template_path' => '/subscribe_theme/create.html', 'action_path' => '/subscribe_theme/create_subscribe_theme_action', 'JIP' => true, 'popup' => true, 'img_src' => '/shared/images/new.folder.gif', 'action_name' => strings :: get('create_subscribe_theme', 'subscribe'), 'can_have_access_template' => true, ), 'edit' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/site_object/edit_action', 'template_path' => '/site_object/edit.html', 'img_src' => '/shared/images/edit.gif' ), ); }
function stats_event_controller() { $this->_actions = array( 'events_list' => array( 'permissions_required' => 'r', 'template_path' => '/stats_event/events_list.html', 'action_name' => strings :: get('show_events_list', 'stats'), 'action_path' => '/stats_event/stats_event_filter_action', ), 'edit' => array( 'permissions_required' => 'w', 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/site_object/edit_action', 'template_path' => '/site_object/edit.html', 'img_src' => '/shared/images/edit.gif' ), 'delete' => array( 'permissions_required' => 'w', 'JIP' => true, 'popup' => true, 'action_name' => strings :: get('delete'), 'action_path' => '/site_object/delete_action', 'template_path' => '/site_object/delete.html', 'img_src' => '/shared/images/rem.gif' ), ); parent :: site_object_controller(); }
/** * Renders the contents of the the select tag, option tags being built by * the option handler. Called from with a compiled template render function. * * @return void * @access protected */ function render_contents() { $value = $this->get_value(); if ($ini_file = $this->get_attribute('options_ini_file')) { $this->set_choices(strings::get('options', $ini_file)); if ($value === null) { $value = strings::get('default_option', $ini_file); } } elseif ($this->get_attribute('options_datasource')) { $data_source =& data_source_factory::create($this->get_attribute('options_datasource')); $this->set_choices($data_source->get_options_array()); if ($value === null) { $value = $data_source->get_default_option(); } } if (empty($value) || !array_key_exists($value, $this->choice_list)) { $value = reset($this->choice_list); } if (empty($this->option_renderer)) { $this->option_renderer = new option_renderer(); } foreach ($this->choice_list as $key => $contents) { $this->option_renderer->render_attribute($key, $contents, $key == $value); } }
function _define_actions() { return array( 'admin_display' => array( 'template_path' => '/admin/admin_page.html', 'transaction' => false, ), 'edit' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/site_object/edit_action', 'template_path' => '/site_object/full_edit.html', 'icon' => 'edit' ), 'delete' => array( 'JIP' => true, 'popup' => true, 'action_name' => strings :: get('delete'), 'action_path' => 'form_delete_site_object_action', 'template_path' => '/site_object/delete.html', 'icon' => 'delete' ), ); }
function _define_actions() { return array( 'admin_display' => array( 'template_path' => '/objects_access/set_group_access.html', 'action_path' => '/objects_access/set_group_objects_access', ), 'set_group_access' => array( 'template_path' => '/objects_access/set_group_access.html', 'action_path' => '/objects_access/set_group_objects_access', 'JIP' => true, 'img_src' => '/shared/images/access_manage.gif', 'action_name' => strings :: get('set_group_access'), ), 'toggle' => array( 'template_path' => '/objects_access/set_group_access.html', 'action_path' => '/objects_access/group_objects_access_tree_toggle_action', ), 'edit' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/site_object/edit_action', 'template_path' => '/site_object/edit.html', 'img_src' => '/shared/images/edit.gif' ), ); }
function test_get_actions() { $j = new actions_component(); $actions = array( 'display' => array( ), 'edit' => array( 'JIP' => false, 'action_name' => strings :: get('edit'), 'img_src' => '/shared/images/edit.gif', ), 'delete' => array( 'JIP' => true, 'action_name' => strings :: get('delete'), 'img_src' => '/shared/images/rem.gif', ), ); $j->set_actions($actions); $j->set_node_id(100); $actions = $j->get_actions(); $this->assertTrue(is_array($actions)); $this->assertEqual(count($actions), 1); $action = reset($actions); $this->assertEqual($action['action'], 'delete'); $this->assertWantedPattern('/^\/root\?.+$/', $action['action_href']); $this->assertWantedPattern('/&*action=delete/', $action['action_href']); $this->assertWantedPattern('/&*node_id=100/', $action['action_href']); }
function _define_actions() { return array( 'display' => array( 'template_path' => '/controller_folder/admin_display.html', ), 'admin_display' => array( 'template_path' => '/controller_folder/admin_display.html', ), 'set_group_access' => array( 'template_path' => '/controller_folder/set_group_access.html', 'action_path' => '/controller_folder/set_group_access', 'popup' => true, 'img_src' => '/shared/images/access_manage.gif', 'action_name' => strings :: get('set_group_access'), ), 'set_group_access_template' => array( 'template_path' => '/controller_folder/set_group_access_template.html', 'action_path' => '/controller_folder/set_group_access_template_action', 'popup' => true, 'img_src' => '/shared/images/access_template_manage.gif', 'action_name' => strings :: get('set_group_access_template'), ), 'edit' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/site_object/edit_action', 'template_path' => '/site_object/edit.html', 'img_src' => '/shared/images/edit.gif' ), ); }
function _define_actions() { return array( 'admin_display' => array( 'template_path' => '/message/admin_display.html' ), 'create_message' => array( 'template_path' => '/message/create.html', 'action_path' => '/message/create_message_action', 'JIP' => true, 'popup' => true, 'img_src' => '/shared/images/new.generic.gif', 'action_name' => strings :: get('create_message','message'), 'can_have_access_template' => true, ), 'edit' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit_message','message'), 'action_path' => '/message/edit_message_action', 'template_path' => '/message/edit.html', 'img_src' => '/shared/images/edit.gif' ), 'delete' => array( 'JIP' => true, 'popup' => true, 'action_name' => strings :: get('delete'), 'action_path' => 'form_delete_site_object_action', 'template_path' => '/site_object/delete.html', 'img_src' => '/shared/images/rem.gif' ), ); }
function _define_actions() { return array( 'display' => array( 'template_path' => '/pictured_news_folder/display.html' ), 'admin_display' => array( 'template_path' => '/pictured_news_folder/admin_display.html' ), 'create_news' => array( 'template_path' => '/pictured_news_object/create.html', 'action_path' => '/pictured_news/create_pictured_news_action', 'JIP' => true, 'popup' => true, 'icon' => 'new.generic', 'action_name' => strings :: get('create_newsline', 'newsline'), 'can_have_access_template' => true, ), 'edit' => array( 'template_path' => '/site_object/edit.html', 'action_path' => '/site_object/edit_action', 'popup' => true, 'JIP' => true, 'icon' => 'edit', 'action_name' => strings :: get('edit_news_folder', 'newsline'), ), ); }
function _define_actions() { return array( 'login' => array( 'action_path' => 'login_action', 'template_path' => 'login.html' ), 'logout' => array( 'action_path' => 'logout_action', ), 'edit' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/site_object/edit_action', 'template_path' => '/site_object/edit.html', 'img_src' => '/shared/images/edit.gif' ), 'change_user_locale' => array( 'popup' => true, 'action_name' => strings :: get('change_locale', 'user'), 'action_path' => '/user/change_user_locale_action', ), ); }
function _define_actions() { return array( 'display' => array( 'template_path' => '/poll_container/display.html' ), 'admin_display' => array( 'template_path' => '/poll_container/admin_display.html' ), 'create_poll' => array( 'template_path' => '/poll/create.html', 'action_path' => '/poll/create_poll_action', 'JIP' => true, 'popup' => true, 'img_src' => '/shared/images/new.generic.gif', 'action_name' => strings :: get('create_poll_question','poll'), 'can_have_access_template' => true, ), 'delete' => array( 'JIP' => true, 'popup' => true, 'action_name' => strings :: get('delete'), 'action_path' => 'form_delete_site_object_action', 'template_path' => '/site_object/delete.html', 'img_src' => '/shared/images/rem.gif' ), 'vote' => array( 'action_path' => '/poll_container/vote_action', 'template_path' => '/poll_container/display.html' ), ); }
function _define_actions() { return array( 'display' => array( 'template_path' => '/faq_folder_container/display.html' ), 'admin_display' => array( 'template_path' => '/faq_folder_container/admin_display.html' ), 'create_faq_folder' => array( 'template_path' => '/faq_folder/create.html', 'action_path' => '/faq_folder/create_faq_folder_action', 'JIP' => true, 'popup' => true, 'img_src' => '/shared/images/new.folder.gif', 'action_name' => strings :: get('create_faq_folder','faq'), 'can_have_access_template' => true, ), 'delete' => array( 'JIP' => true, 'popup' => true, 'action_name' => strings :: get('delete_faq_folder','faq'), 'action_path' => 'form_delete_site_object_action', 'template_path' => '/site_object/delete.html', 'img_src' => '/shared/images/rem.gif' ), ); }
function _define_actions() { return array( 'admin_display' => array( 'template_path' => '/site_param_object/admin_display.html', ), 'edit' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/site_object/edit_action', 'template_path' => '/site_object/edit.html', 'img_src' => '/shared/images/edit.gif' ), 'update' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('set_params', 'site_param'), 'action_path' => '/site_param_object/update_param_action', 'template_path' => '/site_param_object/update.html', 'img_src' => '/shared/images/details.gif' ), 'delete' => array( 'JIP' => true, 'popup' => true, 'action_name' => strings :: get('delete'), 'action_path' => 'form_delete_site_object_action', 'template_path' => '/site_object/delete.html', 'img_src' => '/shared/images/rem.gif' ), ); }
function admin_page_controller() { $this->_actions = array( 'display' => array( 'permissions_required' => 'r', 'template_path' => '/admin/admin_page.html', 'transaction' => false, ), 'admin_display' => array( 'permissions_required' => 'r', 'template_path' => '/admin/admin_page.html', 'transaction' => false, ), 'edit' => array( 'permissions_required' => 'w', 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/site_object/edit_action', 'template_path' => '/site_object/edit.html', 'img_src' => '/shared/images/edit.gif' ), 'register_new_object' => array( 'permissions_required' => 'w', 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('register_new_object'), 'action_path' => '/site_object/register_new_object_action', 'template_path' => '/site_object/register_new_object.html', 'img_src' => '/shared/images/activate.gif' ) ); parent :: site_object_controller(); }
function _define_actions() { return array( 'display' => array( 'action_path' => '/images/display_image_action', ), 'edit' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit'), 'action_path' => '/images/edit_image_action', 'template_path' => '/image/edit.html', 'img_src' => '/shared/images/edit.gif' ), 'edit_variations' => array( 'popup' => true, 'JIP' => true, 'action_name' => strings :: get('edit_variations', 'image'), 'action_path' => '/images/edit_variations_action', 'template_path' => '/image/edit_variations.html', 'img_src' => '/shared/images/look_group.gif' ), 'delete' => array( 'JIP' => true, 'popup' => true, 'img_src' => '/shared/images/rem.gif', 'action_name' => strings :: get('delete'), 'action_path' => 'form_delete_site_object_action', 'template_path' => '/site_object/delete.html', ), ); }