Extensions

Hello, can someone help me?, I am testing some extensions, but i don’t have a great knowledge

of php. I don’t understand some code statements.

Someone help me?

::::::::::::::::::::::

what means this:

"$(colpkr).fadeIn({$this->timeFade});"

why colpkr is between parenthesis?

why is there a dot between $(colpkr) and fadeIn({$this->timeFade});

This is another example:

$(’#{$this->htmlOptions[‘id’]}’).val(hex);

::::::::::::::::::::::

$html =<<<EOP

<div id="{$id}"></div>

EOP;

why <div id="{$id}"></div> is between <<<EOP and EOP;

PLEASE, HELP ME.

I attached the class I’m testing.

this is javascrtipt, here uses jquery.


$(colpkr).fadeIn({$this->timeFade});

$(colpkr) object calls fadeIn() function, here it is


{$this->timeFade}

php code.


$html =<<<EOP

<div id="{$id}"></div>

EOP;

means echoing bulk codes(html) to display. Take a look from php doc.

It is JavaScript, more precisely - jQuery library.

About EOP read there: http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc