summaryrefslogtreecommitdiff
path: root/include/namespace.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-10 12:36:50 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-10 12:36:50 +0200
commitec18c8779c6a806c6cbeb5fe12446955cd688221 (patch)
treeddc704bac5574d4727560469874019ecc07aed9e /include/namespace.h
parentf0dec5907bd49bb468089b0fe50d8cbf2979272e (diff)
refactored ini settings
Diffstat (limited to 'include/namespace.h')
-rw-r--r--include/namespace.h50
1 files changed, 1 insertions, 49 deletions
diff --git a/include/namespace.h b/include/namespace.h
index 1c9d457..828c12c 100644
--- a/include/namespace.h
+++ b/include/namespace.h
@@ -48,11 +48,6 @@ protected:
*/
std::list<std::shared_ptr<Namespace>> _namespaces;
- /**
- * Ini entry defined by the extension
- * @var list
- */
- std::set<std::shared_ptr<Ini>, Ini::Compare> _ini_entries;
public:
/**
@@ -165,38 +160,10 @@ public:
}
/**
- * Add a ini entry to the extension by moving it
- * @param ini The class implementation
- * @return Namespace Same object to allow chaining
- */
- Namespace &add(Ini &&ini)
- {
- // and add it to the list of classes
- _ini_entries.emplace(new Ini(std::move(ini)));
-
- // allow chaining
- return *this;
- }
-
- /**
- * Add a ini entry to the extension by copying it
- * @param ini The class implementation
- * @param Namespace Same object to allow chaining
- */
- Namespace &add(const Ini &ini)
- {
- // and add it to the list of classes
- _ini_entries.emplace(new Ini(ini));
-
- // allow chaining
- return *this;
- }
-
- /**
* The total number of functions
* @return size_t
*/
- size_t functions()
+ size_t functions() const
{
// number of functions in this namespace
int result = _functions.size();
@@ -209,15 +176,6 @@ public:
}
/**
- * The total number of ini entries
- * @return size_t
- */
- size_t ini_size()
- {
- return _ini_entries.size();
- }
-
- /**
* Apply a callback to each registered function
*
* The callback will be called with the name of the namespace, and
@@ -237,12 +195,6 @@ public:
*/
void classes(const std::function<void(const std::string &ns, ClassBase &clss)> &callback);
- /**
- * Filling ini entries into external zend_ini_entry array
- * @param zend_ini_entry*
- */
- void fill_ini(_zend_ini_entry *ini_entries, int module_number);
-
};
/**