public function add(FileCreationInformation $fileCreationInformation)
    {
        $file = new File($this->getContext(),$this->getResourcePath());
        $qry = new InvokePostMethodQuery(
            $this->getResourcePath(),
            "add",
            array("overwrite"=>$fileCreationInformation->Overwrite,"url"=>rawurlencode($fileCreationInformation->Url)),
            $fileCreationInformation->Content
            );
        $this->getContext()->addQuery($qry,$file);
        //$this->addChild($file);
        return $file;
    }
public function add(FileCreationInformation $fileCreationInformation)
    {
        $file = new File($this->getContext(),$this->getResourcePath());
        $qry = new InvokePostMethodQuery(
            $this->getResourcePath(),
            "add",
            array("overwrite"=>$fileCreationInformation->Overwrite,"url"=>rawurlencode($fileCreationInformation->Url)),
            $fileCreationInformation->Content
            );
        $this->getContext()->addQuery($qry,$file);
        //$this->addChild($file);
        return $file;
    }
public function add ( FileCreationInformation $ fileCreationInformation ) { $ file = new File ( $ this -> getContext ( ) , $ this -> getResourcePath ( ) ) ; $ qry = new InvokePostMethodQuery ( $ this -> getResourcePath ( ) , "add" , array ( "overwrite" => $ fileCreationInformation -> Overwrite , "url" => rawurlencode ( $ fileCreationInformation -> Url ) ) , $ fileCreationInformation -> Content ) ; $ this -> getContext ( ) -> addQuery ( $ qry , $ file ) ; //$this->addChild($file); return $ file ; }
Creates a File resource
@param FileCreationInformation $fileCreationInformation
@return File
Creates a File resource