Coverted script import to laravel

This commit is contained in:
Deon George
2016-06-22 15:49:20 +10:00
parent a2357435e1
commit b1d7cfe616
36 changed files with 1619 additions and 299 deletions

View File

@@ -1,14 +0,0 @@
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class supports Albums.
*
* @package Photo
* @category Models
* @author Deon George
* @copyright (c) 2014 Deon George
* @license http://dev.leenooks.net/license.html
*/
class Model_Album extends ORM {
}
?>

View File

@@ -185,6 +185,8 @@ class Model_Photo extends ORM {
return join('|',array_keys($result));
}
/*
private function rotate(Imagick $imo) {
switch ($this->orientation) {
case 3: $imo->rotateImage(new ImagickPixel('none'),180);
@@ -195,6 +197,7 @@ class Model_Photo extends ORM {
break;
}
}
*/
public function rotation() {
switch ($this->orientation) {
@@ -211,6 +214,7 @@ class Model_Photo extends ORM {
return sprintf('%s...%s',substr($signature,0,$chars),substr($signature,-1*$chars));
}
/*
public function thumbnail($rotate=TRUE) {
if (! $this->thumbnail)
return NULL;
@@ -224,6 +228,7 @@ class Model_Photo extends ORM {
return $imo->getImageBlob();
}
*/
public function thumbnail_sig() {
return md5($this->thumbnail()).':'.strlen($this->thumbnail());

View File

@@ -1,14 +0,0 @@
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class supports Tags.
*
* @package Photo
* @category Models
* @author Deon George
* @copyright (c) 2014 Deon George
* @license http://dev.leenooks.net/license.html
*/
class Model_Photo_People extends ORM {
}
?>

View File

@@ -1,14 +0,0 @@
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class supports Tags.
*
* @package Photo
* @category Models
* @author Deon George
* @copyright (c) 2014 Deon George
* @license http://dev.leenooks.net/license.html
*/
class Model_Photo_Tag extends ORM {
}
?>

View File

@@ -1,14 +0,0 @@
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class supports Tags.
*
* @package Photo
* @category Models
* @author Deon George
* @copyright (c) 2014 Deon George
* @license http://dev.leenooks.net/license.html
*/
class Model_Tags extends ORM {
}
?>