/[drupal]/contributions/modules/fast_gallery/FGImage.class.php
ViewVC logotype

Diff of /contributions/modules/fast_gallery/FGImage.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3, Tue Nov 10 18:20:18 2009 UTC revision 1.4, Wed Nov 11 21:43:33 2009 UTC
# Line 9  Line 9 
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    /**    /**
# Line 22  class FGImage { Line 23  class FGImage {
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']);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.2