Jump to content

villabus

Clients
  • Posts

    986
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Everything posted by villabus

  1. It doesn't work that way. That is why iBotPeaches hook stopped working. I just did 2 for class public_forums_moderate_moderate and both ended up written exactly as coded: As a test This was the code to be executed. Both work individually installed. If installed together the last one installed only works. I have the latest ver of 3.05 installed.
  2. As a developer in a large group of developers, how would you detemine that a class has been already extended and by what class without looking at every IPB hooks_files record on every site to be installed? By the way php classes can be extended more than once as in this example: class employee { protected $empname; protected $empage; function setdata($empname,$empage) { $this->empname = $empname; $this->empage = $empage; } function outputData(){} } class EmployeeData extends employee //extending abstract class { function __construct($name,$age) { $this->setdata($name,$age); } function outputData() { echo $this->empname; echo $this->empage; } } class EmployeeD extends employee //extending abstract class { function __construct($name,$age) { $this->setdata($name,$age); } function outputData() { echo $this->empname; echo $this->empage; } } $a = new EmployeeData("Hitesh","24"); $a->outputData(); $b = new EmployeeD("Jones","30"); $b->outputData(); ?> <?PHP It is not the preferred method but when developing hooks while others are developing hooks without any communication it would seem to be the only way. I am waiting for an answer as I have already run into this problem numerous times and having to go to every site that installs it to find the other class really defeats th idea of having classes. Thanks in advance Villabus
×
×
  • Create New...