>DZIĘKI ixpack
class CKunenaTools {
var $id = null;
function checkDatabaseError() {
kimport('error');
return KunenaError::checkDatabaseError();
}
function showButton($name, $text) {
return '<span class="'.$name.'"><span>'.$text.'</span></span>';
}
...
class CKunenaLink {
//
// Basic universal href link
//
function GetHrefLink($link, $name, $title = '', $rel = 'nofollow', $class = '', $anker = '', $attr = '') {
return '<a ' . ($class ? 'class="' . $class . '" ' : '') . 'href="' . $link . ($anker ? ('#' . $anker) : '') . '" title="' . $title . '"' . ($rel ? ' rel="' . $rel . '"' : '') . ($attr ? ' ' . $attr : '') . '>' . $name . '</a>';
}
...
function GetTopicPostLink($do, $catid, $id, $name, $rel = 'nofollow', $class = '', $title = '', $attr = '') {
return CKunenaLink::GetSefHrefLink ( KUNENA_LIVEURLREL . '&func=post&do=' . $do . '&catid=' . $catid . '&id=' . $id . '&'.JUtility::getToken().'=1', $name, $title, $rel, $class, '', $attr );
}
...
Skoro to jest metoda, bo wywołuje obiekty, to jak podmienić obiekty, by to były obiekty graficzne? I czy parametry tej metody ($name & $ text) są zdefiniowane jeszcze gdzie indziej? Bo nie wiem, a bardzo chciałbym wiedzieć

DZIĘKI!
>nekomata DZIĘKI Tobie też

Czyli powinienem szukać zdefiniowania zmiennych w tym samym pliku .php w którym jest wywołana funkcja, czy metoda? Tam znalazłem tylko coś takiego:
$this->username = $this->config->username ? $this->profile->username : $this->profile->name;
if ((!$this->username || !$message->userid || $this->config->changename) && $message->name) {
$this->username = $message->name;
}
To takie 'podejrzane' z name, ale nie ma przy tym '$', więc nie wiem czy dobre? A text w ogóle mi nie znalazło... Chyba błądzę :\