Cheetah
Main Page
Related Pages
Namespaces
Namespace List
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
plugins
intervention-image
Intervention
Image
Imagick
Commands
FlipCommand.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Intervention\Image\Imagick\Commands
;
4
5
class
FlipCommand
extends
\Intervention\Image\Commands\AbstractCommand
6
{
13
public
function
execute
($image)
14
{
15
$mode = $this->
argument
(0)->value(
'h'
);
16
17
if
(in_array(strtolower($mode), array(2,
'v'
,
'vert'
,
'vertical'
))) {
18
// flip vertical
19
return
$image->getCore()->flipImage();
20
}
else
{
21
// flip horizontal
22
return
$image->getCore()->flopImage();
23
}
24
}
25
}
Intervention\Image\Imagick\Commands\FlipCommand\execute
execute($image)
Definition:
FlipCommand.php:13
Intervention\Image\Imagick\Commands\FlipCommand
Definition:
FlipCommand.php:6
php
Intervention\Image\Imagick\Commands
Definition:
BackupCommand.php:3
Intervention\Image\Commands\AbstractCommand\argument
argument($key)
Definition:
AbstractCommand.php:45
Intervention\Image\Commands\AbstractCommand
Definition:
AbstractCommand.php:6
Generated by
1.8.20