PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Thim   Subversion::Dynamix   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Class example
Class: Subversion::Dynamix
Manipulate files in a subversion repository
Author: By
Last change: Example of download function
Date: 18 years ago
Size: 2,192 bytes
 

Contents

Class file image Download
<?php
# ================================================================================================= #
# SUBVERSION CLASS #
# ================================================================================================= #
# Author : Tim Haselaars #
# Company : Dynamix Solutions #
# Contact: timhaselaars@gmail.com # #
# Date: 3 October 2006 # #
# Version: 1.00 # #
# ================================================================================================= #

// Error Handeling
error_reporting( E_ALL );

// include class file
require_once 'class.subversion.php';

// Class examples
$svn = new subversion();
$svn->getVersion(); // Get versiondir
$svn->getVersion('svnadmin'); // Get versiondir

//$svn->delete('test'); // Delete a repository xxx
//$svn->create('test'); // Create a repository yyy
//$svn->addFile( 'test', '/svn/svn_default'); // Add default directory structure
//$svn->addFile( 'test/design', '/test'); // Add all files in /test directory structure
//print_r($svn->status('test')); // Show status of repo test

//$svn->renameFile( 'test/design', 'test.txt','test2.txt'); // rename file from test to test2
//$svn->renameDir( 'test/design' , 'JOHN', 'JOHN2'); // rename dir from JOHN to JOHN2
//$svn->show('test/design'); //Show repository list

//$svn->updateFile('yyy', '/test'); // AddFiles from a directory to repo
//$svn->downloadFile('yyy/test',$_GET['file']);
?>