예제 #1
0
function generatePreImplemented($method, $class, $f)
{
    if ($method['name'] == '__construct') {
        fprintf($f, "  public: c_%s *create", $class['name']);
        generateFuncArgsCPPHeader($method, $f, true);
        fprintf($f, ";\n");
    }
}
예제 #2
0
파일: base.php 프로젝트: robrepp/hiphop-php
function generatePreImplemented($method, $class, $f)
{
    if ($method['name'] == '__construct') {
        fprintf($f, "  public: c_%s *create", strtolower($class['name']));
        generateFuncArgsCPPHeader($method, $f, true);
        fprintf($f, ";\n");
        fprintf($f, "  public: void dynConstruct(CArrRef Params);\n");
        fprintf($f, "  public: void dynConstructFromEval");
        fprintf($f, "(Eval::VariableEnvironment &env,\n");
        fprintf($f, "                                    ");
        fprintf($f, "const Eval::FunctionCallExpression *call);\n");
    } else {
        if ($method['name'] == '__destruct') {
            fprintf($f, "  public: virtual void destruct();\n", $class['name']);
        }
    }
}
예제 #3
0
파일: base.php 프로젝트: rampage/hiphop-php
function generatePreImplemented($method, $class, $f)
{
    if ($method['name'] == '__construct') {
        fprintf($f, "  public: c_%s *create", $class['name']);
        generateFuncArgsCPPHeader($method, $f, true);
        fprintf($f, ";\n");
        fprintf($f, "  public: void dynConstruct(CArrRef Params);\n");
        fprintf($f, "  public: void getConstructor(MethodCallPackage &mcp);\n");
    } else {
        if ($method['name'] == '__destruct') {
            fprintf($f, "  public: virtual void destruct();\n", $class['name']);
        }
    }
}
예제 #4
0
파일: base.php 프로젝트: p6/hiphop-php
function generatePreImplemented($method, $class, $f)
{
    if ($method['name'] == '__construct') {
        fprintf($f, "  public: ObjectData *create");
        generateFuncArgsCPPHeader($method, $f, true, true);
        fprintf($f, ";\n");
        fprintf($f, "  public: void dynConstruct(CArrRef Params);\n");
    } else {
        if ($method['name'] == '__destruct') {
            fprintf($f, "  public: virtual void destruct();\n", $class['name']);
        }
    }
}