Implemented __ifrow tag.
This commit is contained in:
1 parent
7d6bb8355f
commit
f1624b074a
4 files changed
+41
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
#include "__ifrow.h"
|
||||
#include "Exception.h"
|
||||
#include "MString.h"
|
||||
#include "__mysql.h"
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
namespace jet {
|
||||
|
||||
__ifrow::__ifrow(coreutils::ZString &in, coreutils::MString &parent, Global &global) : Tag(in, parent, global) {
|
||||
output = false;
|
||||
if(!hasContainer)
|
||||
throw coreutils::Exception("ifrow tag must have a container.");
|
||||
if(!global.sessionExists(variables["sessionid"]))
|
||||
throw coreutils::Exception("sessionid does not exist.");
|
||||
if(global.getSession(variables["sessionid"])->hasRow())
|
||||
processContainer(container);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user