]> git.mxchange.org Git - friendica.git/blobdiff - doc/AddonStorageBackend.md
Merge pull request #1 from friendica/develop
[friendica.git] / doc / AddonStorageBackend.md
index a4f8c0dae712182969b15cbbb9ccbc22c491fba1..950a2ad88d9dd6ab26a8f961106c635f61bc41ef 100644 (file)
@@ -52,7 +52,7 @@ The info array for each option is defined as:
                'type',
 
 define the field used in form, and the type of data.
-one of 'checkbox', 'combobox', 'custom', 'datetime', 'input', 'intcheckbox', 'password', 'radio', 'richtext', 'select', 'select_raw', 'textarea', 'yesno'
+one of 'checkbox', 'combobox', 'custom', 'datetime', 'input', 'intcheckbox', 'password', 'radio', 'richtext', 'select', 'select_raw', 'textarea'
 
                'label',
 
@@ -73,7 +73,6 @@ Optional. Depends on which 'type' this option is:
 - 'select': array `[ value => label ]` of choices
 - 'intcheckbox': value of input element
 - 'select_raw': prebuild html string of `<option >` tags
-- 'yesno': array `[ 'label no', 'label yes']`
 
 Each label should be translatable
 
@@ -136,26 +135,26 @@ namespace Friendica\Addon\samplestorage;
 
 use Friendica\Model\Storage\IStorage;
 
-use Friendica\Core\Config\IConfiguration;
+use Friendica\Core\Config\IConfig;
 use Friendica\Core\L10n;
 
 class SampleStorageBackend implements IStorage
 {
        const NAME = 'Sample Storage';
 
-       /** @var IConfiguration */
+       /** @var IConfig */
        private $config;
        /** @var L10n */
        private $l10n;
 
        /**
          * SampleStorageBackend constructor.
-         * @param IConfiguration $config The configuration of Friendica
+         * @param IConfig $config The configuration of Friendica
          *                                                                       
          * You can add here every dynamic class as dependency you like and add them to a private field
          * Friendica automatically creates these classes and passes them as argument to the constructor                                                                           
          */
-       public function __construct(IConfiguration $config, L10n $l10n) 
+       public function __construct(IConfig $config, L10n $l10n) 
        {
                $this->config = $config;
                $this->l10n   = $l10n;