public function addTemplateFile($urlOfFile,$templateFileType)
    {
        $file = new File($this->getContext(),$this->getResourcePath());
        $qry = new InvokePostMethodQuery(
            $this->getResourcePath(),
            "addTemplateFile",
            array(
                "urlOfFile" => $urlOfFile,
                "templateFileType" => (int)$templateFileType
            )
        );
        $this->getContext()->addQuery($qry,$file);
        return $file;
    }
public function addTemplateFile($urlOfFile,$templateFileType)
    {
        $file = new File($this->getContext(),$this->getResourcePath());
        $qry = new InvokePostMethodQuery(
            $this->getResourcePath(),
            "addTemplateFile",
            array(
                "urlOfFile" => $urlOfFile,
                "templateFileType" => (int)$templateFileType
            )
        );
        $this->getContext()->addQuery($qry,$file);
        return $file;
    }
public function addTemplateFile ( $ urlOfFile , $ templateFileType ) { $ file = new File ( $ this -> getContext ( ) , $ this -> getResourcePath ( ) ) ; $ qry = new InvokePostMethodQuery ( $ this -> getResourcePath ( ) , "addTemplateFile" , array ( "urlOfFile" => $ urlOfFile , "templateFileType" => ( int ) $ templateFileType ) ) ; $ this -> getContext ( ) -> addQuery ( $ qry , $ file ) ; return $ file ; }
Adds a ghosted file to an existing list or document library.
@param $urlOfFile
@param $templateFileType
@return File
Adds a ghosted file to an existing list or document library .