summaryrefslogtreecommitdiff
path: root/include/super.h
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2015-03-26 16:00:10 +0100
committerMartijn Otto <martijn.otto@copernica.com>2015-03-26 16:00:10 +0100
commit7a928e2b19bddf152fd838469cc50805d4132401 (patch)
tree0a6657f4b94c27556b2f218e407f752018540d3b /include/super.h
parentae4fa5f871d937773e9facde87a32784e715e3ae (diff)
Changed default visibility for symbols in the PHP-CPP library to hidden and explicitly exported all symbols available from the public API. Moved the hiddenpointer to the zend implementation directory as it is not meant to be used publicly and not referenced anywhere from the API anyway
Diffstat (limited to 'include/super.h')
-rw-r--r--include/super.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/include/super.h b/include/super.h
index 07dc4b3..154ae62 100644
--- a/include/super.h
+++ b/include/super.h
@@ -12,29 +12,29 @@
* Set up namespace
*/
namespace Php {
-
+
/**
* Class definition
*/
-class Super
+class PHPCPP_EXPORT Super
{
public:
/**
* Constructor
- *
+ *
* Extension writers do not have to access the super-globals themselves.
* They are always accessible via Php::POST, Php::GET, et cetera.
- *
+ *
* @param index index number
* @param name name of the variable in PHP
*/
Super(int index, const char *name) : _index(index), _name(name) {}
-
+
/**
* Destructor
*/
virtual ~Super() {}
-
+
/**
* Array access operator
* This can be used for accessing associative arrays
@@ -78,7 +78,7 @@ public:
// convert to value, and call begin on the value object
return value().begin();
}
-
+
/**
* Return an iterator for iterating over the variables
* @return iterator
@@ -95,19 +95,19 @@ private:
* @var int
*/
int _index;
-
+
/**
* Name of the variable in PHP
* @var name
*/
const char *_name;
-
+
/**
* Turn the object into a value object
* @return Value
*/
Value value();
-
+
};
/**
@@ -125,4 +125,3 @@ extern Super REQUEST;
* End namespace
*/
}
-