Jump to content
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Несколько хуков с перегрузкой одного класса

Приветствую.

У меня есть один хук типа перегрузчик стиля, перегружает класс skin_profile(~id~), шаблон profileModern, помимо родных параметров он добавляет свои дополнитеьлные в функцию

public function profileModern( $tabs=array(), $member=array(), $visitors=array(), $default_tab='status', $default_tab_content='', $friends=array(), $status=array(), $warns=array(), $show_contact='',$test1='' , $test2=''

Сейчас делаю другой хук которому тоже надо перегрузить тотже класс и добавить в эту же функцию еще один доп.параметр. Это вообще возможно?

Если я прописываю во втором хуке

public function profileModern( $tabs=array(), $member=array(), $visitors=array(), $default_tab='status', $default_tab_content='', $friends=array(), $status=array(), $warns=array(), $show_contact='',$test3=''

то значение test3 не доходит в шаблон. неужели мне надо прописать все параметры первого хука и во втором?

 

совместить два хука в один пока не вариант, у них немного разное назначение, сходятся только тем что добавляю свои данные на страницу профиля

Edited by rabotnik

Featured Replies

No posts to show

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.