[Owncloud] How to properly create settings for an app?
Victor Dubiniuk
victor.dubiniuk at gmail.com
Sun Nov 11 09:50:30 UTC 2012
Hi Mark,
App-wide settings (for all users):
\OCP\Config::setAppValue
https://github.com/owncloud/core/blob/master/lib/public/config.php#L90
Per-user settings:
\OCP\Config::setUserValue
https://github.com/owncloud/core/blob/master/lib/public/config.php#L120
---
Victor
On Sat, Nov 10, 2012 at 7:41 PM, Mark - Syminet <mark at syminet.com> wrote:
>
> Hello friends,
>
> I have ajaxterm SSH working here within my owncloud. There is a nice
> button on the left-bar and all that. I can right-click "open link in new
> tab" and get tabbed ssh sessions in my web browser. It's really quite
> cool, and I want to share. :-)
>
> But I need to quickly know how to put settings into the database via the
> API. The example application from a git pull does not include a "Save"
> button? Before release, I would like to understand the "proper way" to
> save app settings to the database.
>
> * What function is called when I click "Enable" for an application?
> * Where do I look in the example app, for how to properly create database
> entries for my own app?
>
> Thanks so much to everyone for all your hard work - let us forge forward
> together! :-)
>
> Mark
>
> --
> Syminet Internetworking Solutions
> http://www.syminet.com/
> 1-866-664-3151 ext. 8049
>
>
>
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20121111/4aebe752/attachment.html>
More information about the Owncloud
mailing list