Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Jan 22, 2015
1 parent 36bfa7b commit e837cd8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 25 deletions.
4 changes: 3 additions & 1 deletion Config/database.example.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
class DATABASE_CONFIG {

public $cakeftp = array(
'datasource' => 'Ftp.FtpSource',
'host' => 'example.com',
Expand All @@ -8,4 +9,5 @@ class DATABASE_CONFIG {
'type' => 'ftp',
'port' => 21,
);
}

}
18 changes: 6 additions & 12 deletions Model/Ftp.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
<?php
App::uses('AppModel', 'Model');
App::uses('ConnectionManager', 'Model');

/**
* Ftp Model
*
* @package cakeftp
*
* @author Kyle Robinson Young <kyle at dontkry.com>
* @copyright 2011 Kyle Robinson Young
*/
class Ftp extends AppModel {

/**
* name
* @var string
*/
public $name = 'Ftp';

/**
* useDbConfig
* @var string
Expand All @@ -25,16 +19,16 @@ class Ftp extends AppModel {
/**
* cache
* Override the cache settings.
*
*
* @var array
*/
public $cache = false;

/**
* __construct
* Automatically connect to datasource if
* Automatically connect to datasource if
* dynamic connections are wanted.
*
*
* @param array $id
* @param string $table
* @param string $ds
Expand All @@ -48,4 +42,4 @@ public function __construct($id = null, $table = null, $ds = null) {
parent::__construct($id, $table, $ds);
}

}
}
12 changes: 0 additions & 12 deletions Model/FtpAppModel.php

This file was deleted.

0 comments on commit e837cd8

Please sign in to comment.