Coverted script import to laravel
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
?>
|
@@ -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());
|
||||
|
@@ -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 {
|
||||
}
|
||||
?>
|
@@ -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 {
|
||||
}
|
||||
?>
|
@@ -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 {
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user