[Mediawiki-l] Catlinks

Jim Wilson wilson.jim.r at gmail.com
Fri Feb 16 14:59:38 UTC 2007


In these lines:

$testen = new Maak ();
$testen ->Maak();

Did you mean something like this?:

$catlinks = array( 'test', 'data' );
$testen = new Maak ($catlinks);

-- Jim

On 2/16/07, Nanda <njansen at natuurlijk.nl> wrote:
>
> I use the information of the Categories in my template with:
>
>
> $this->data['catlinks']
>
> Now I want to bring this to an extension. I wrote a class:
>
> class Maak {
>
>         var $catlinks;
>
>         function Maak($catlinks) {
>                 $this->data['catlinks'] = $catlinks;
>
>         }
> }
>
> $testen = new Maak ();
> $testen ->Maak();
>
> echo "<pre>";
> var_dump($testen);
> echo "</pre>";
>
>
> The output i get is:
>
> object(Maak)#184 (2) {
>   ["catlinks"]=>
>   NULL
>   ["data"]=>
>   array(1) {
>     ["catlinks"]=>
>     NULL
>   }
> }
>
> The object seems to be empty.
>
> Any idea how i can get these data?
>
>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>


More information about the MediaWiki-l mailing list