Matthias Englert wrote:

> //private function
> function test($key, $other, $params) {
>
> /* KEY-BEGIN */ $int_key = "this would be generated by installation and
> maybe perodical"; /* KEY-END */
>
>     if ($key != $int_key)
>         exit;
> }
>
> //public function
> function mgd_test_func($params) {
>
> /* KEY-BEGIN */ $int_key = "this would be generated by installation and
> maybe perodical"; /* KEY-END */
>
> test($int_key, "some stuff", "goes here");
>
> }
>
> Any thoughts?

With this you could block access to the midgard functions, but you'd
still have the raw MySQL connection exposed. I've been thinking about
this for a _long_ time and the only solution I could find was for Zend
to finally add halfway-decent OO mechanisms to Zend (object-private
methods and/or vars, friend declarations) or at least a namespacing
facility. Not at all likely to happen, though.

Emile



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to