Re: Accessing Class Method



They can't interact, because they'll never be able to see each other.
If you want to accomplish an interaction using your current setup,
you'll have to write methods in the main_class class, which will
delegate information from one object to another.

On Sep 17, 3:13 pm, RageARC <rage...@xxxxxxxxx> wrote:
I have the following code:

index.php:
class main_class {

public $database = new DAL;
public $html = new HTML;

}

dal.php:
class DAL {

function method() {
# Code

}
}

class HTML {

function method() {
# Code
# HOW TO CALL DAL'S METHOD?
# Code

}
}

As you see, DAL and HTML are inside two variables of two classes, but
how can they interact with each other?



.



Relevant Pages

  • Accessing Class Method
    ... public $database = new DAL; ... public $html = new HTML; ... function method() { ... how can they interact with each other? ...
    (comp.lang.php)
  • Re: code problem: Cant get mouse over class to work.
    ... An option, and often a very good one, is to create and post a cut-down 'test-case' page that demonstrates the issue in isolation. ... The FAQ for the group propos that no more than about 500 lines of code (combined HTML and scripts) should be posted, but most properly cut-down test cases can be created within that limit. ... Granted there are circumstances where a link is the only sensible option; interactions between multiple pages, when images are a significant part of the issue/context, etc. ... Fragments of code that are intended to interact with an HTML DOM, without any HTML for them to interact with will likely be beyond the effort threshold for actual testing. ...
    (comp.lang.javascript)
  • Re: File Creation
    ... Sub CreateFile() ... interact with other parts of the page. ...
    (microsoft.public.scripting.vbscript)
  • Re: how to interact interactive html excel cell in javascript
    ... > Please tell me how to interact the cells in this html page through ... > javascript. ...
    (comp.lang.javascript)
  • RE: Controlling the html
    ... Also if you're using NUnitASP you can interact with them more directly, ... "Andy Sutorius via DotNetMonster.com" wrote: ... Can you manipulate the html the grid outputs? ...
    (microsoft.public.dotnet.framework.aspnet)

Loading