| 9 |
|
|
| 10 |
|
|
| 11 |
class FGImage { |
class FGImage { |
| 12 |
|
//$fid |
| 13 |
private $path, $name, $folder, $parent, $fid, $isDir; |
private $path, $name, $folder, $parent, $fid, $isDir; |
| 14 |
|
|
| 15 |
/** |
/** |
| 23 |
public function __construct($path, $options = array()) { |
public function __construct($path, $options = array()) { |
| 24 |
$this->setPath($path); |
$this->setPath($path); |
| 25 |
|
|
| 26 |
$fid = db_query("SELECT fid FROM {file} WHERE uri = :uri", array(':uri' => $path))->fetchField(); |
//$fid = db_query("SELECT fid FROM {file} WHERE uri = :uri", array(':uri' => $path))->fetchField(); |
| 27 |
$this->setFid($fid); |
//$this->setFid($fid); |
| 28 |
|
|
| 29 |
if (isset($options['dir'])) { |
if (isset($options['dir'])) { |
| 30 |
$this->setIsDir($options['dir']); |
$this->setIsDir($options['dir']); |