У нас вы можете посмотреть бесплатно Class extensions and self-to-many relations - Building with XenForo 2 part 10 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Welcome to a new series of videos taking an in-depth look at building an add-on for XenForo 2. These videos will take you step-by-step through various tools and technologies available for you to use. Part 10: This part deals with adding a relation to our content to an existing XenForo entity through class extension, then looks at fetching self-to-many relations in PHP and in templates. Topics covered: 00:00 The problem of multiple-inheritance 00:43 The XenForo Class Extension system 00:56 Reciprocal Entity relations 01:16 Self-to-many Entity relations 01:27 How not to do it 01:59 Extending the XF:User Entity class 02:28 Writing an extended Entity::getStructure() method 03:16 Defining the Note→User relation 04:09 More about self-to-many relations 04:49 How to use the Class Extension system 05:37 Take care extending the XF:User Entity 06:00 Example controller action to fetch a User and their Notes 07:28 Fetching self-to-many relations in PHP 08:59 An example template to select a User 10:54 Adding variables to the query string in the link builder 12:14 Fetching self-to-many relations directly in templates (no PHP required) 13:18 Review Building a XenForo 2 add-on playlist: • Building with XenForo 2 Useful links: XenForo.com https://XenForo.com XenForo developer documentation https://XenForo.com/docs/dev Development environment setup guides MacOS - https://xenforo.com/docs/dev/macos-dev/ Windows - https://xenforo.com/docs/dev/windows-... Linux - https://xenforo.com/docs/dev/linux-dev/ XDebug with Visual Studio Code - https://xenforo.com/docs/dev/vscode/ The XenForo 1.0 video series from 2010 Part 1 - https://vimeo.com/16893821 Part 2 - https://vimeo.com/17010931 Part 3 - https://vimeo.com/17086181