We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

The function() of Oxwall | Forum

Damien
Damien Aug 18 '13

Hello,

I am trying to make my first plugin.

And I wonder if there is a place where all are listed function () predefined on oxwall?

as:


OW::getDocument()->addScript($this->pluginJsUrl . 'file.js')

OW::getLanguage()->text('plugin', 'key')

OW::getUser()->isAuthorized('plugin')

.......


For how to know? I have to look in the files?


And I'm looking how to find the url of the css file in my plugin (in static)

because I've tried this:


OW::getDocument()->addScript($this->pluginCssUrl . 'file.css')


But it does not work!

or if not, can be done like this?

OW::getDocument()->addScript($this->pluginStaticUrl . 'css/file.css')


Thank you in advance for the answers to be given to me

Damien
Damien Aug 22 '13

Hello,


Someone could tell me at least, the meaning of this:


OW::

self::

getEventManager()

BOL_UserService::getInstance()


and what is the difference between "OW::" and "OW_" ?


And last thing, how can I send information to the database?If he has another way that "query"


I hope to get an answer.Thank you all in advance.

Daisy Team
Daisy Sep 5 '13
Dear Damien,

Have you checked out our crash course: http://docs.oxwall.org/dev:crash-course?

Also, I suggest that you download our new Plugin Skeleton plugin to see how to use this or that function. Here is URL to the Store item: http://www.oxwall.org/store/item/695
Daisy Team
Daisy Sep 5 '13
Also, I suggest that you use any Development Environment for your plugin development. You can try using NetBeans: https://netbeans.org/

This development environment will help you to find the functions and methods you need easily and fast.
Damien
Damien Sep 5 '13

Thank you very much for your answers.


I will consider your suggestions carefully.

Daisy Team
Daisy Sep 6 '13
Ok, let me know if you need further assistance.