Ejemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param string $name Name of the attribute
  * @param int $flags Flags for this attribute
  * @param string|array $dir Can be a string with the Directory with images/files or an array with a Directory and a Display Url
  *
  */
 public function __construct($name, $flags = 0, $dir)
 {
     $flags = $flags | self::AF_CASCADE_DELETE;
     parent::__construct($name, $flags, '');
     if (is_array($dir)) {
         $this->m_dir = $this->AddSlash($dir[0]);
         $this->m_url = $this->AddSlash($dir[1]);
     } else {
         $this->m_dir = $this->AddSlash($dir);
         $this->m_url = $this->AddSlash($dir);
     }
 }