private function ensure_isset(array $properties) {
        foreach ($properties as $property) {
            if (!isset($this->$property)) {
                throw new coding_exception('The property "'.$property.'" is not set.');
            }
        }
    }
private function ensure_isset(array $properties) {
        foreach ($properties as $property) {
            if (!isset($this->$property)) {
                throw new coding_exception('The property "'.$property.'" is not set.');
            }
        }
    }
private function ensure_isset ( array $ properties ) { foreach ( $ properties as $ property ) { if ( ! isset ( $ this -> $ property ) ) { throw new coding_exception ( 'The property "' . $ property . '" is not set.' ) ; } } }
Make sure that the given properties were set to some not-null value

@param array $properties the list of properties
@throws coding_exception
Make sure that the given properties were set to some not - null value