Show
Ignore:
Timestamp:
05/17/07 16:25:43 (5 years ago)
Author:
fproulx
Message:

2007-05-17 François Proulx <francois.proulx@…>

  • WARNING: This has not been fully tested. Full testing to be completed on 2006-05-18 but I'm pretty confident that it works pretty well.
  • Added automatic resize on Avatars
  • Added FavoriteHotspots? content (mostly used for Profiles)
  • Added new features to Content and File
  • Fixed URL regexp bug in HyperlinkUtils?
  • Updated French translations
  • Updates profiles template
  • TODO: Add getNewUI et processNewUI to FavoriteHotspots? to simplify input
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/Content.php

    r1201 r1226  
    423423        return $retval; 
    424424    } 
    425      
     425 
    426426    /** 
    427427     * Check if this class is NOT any of the class or subclass of one of the content types given as parameter 
     
    12321232        return $retval; 
    12331233    } 
     1234 
    12341235    /** Get the authors of the Content 
    12351236     * @return null or array of User objects */ 
     
    12371238        $db = AbstractDb :: getObject(); 
    12381239        $retval = array (); 
     1240        $content_owner_row = null; 
    12391241        $sql = "SELECT user_id FROM content_has_owners WHERE content_id='$this->id' AND is_author=TRUE"; 
    12401242        $db->execSqlUniqueRes($sql, $content_owner_row, false); 
     
    12461248        return $retval; 
    12471249    } 
     1250 
     1251    /** Get the owners of the Content 
     1252     * @return null or array of User objects */ 
     1253    public function getOwners() { 
     1254        $db = AbstractDb :: getObject(); 
     1255        $retval = array (); 
     1256        $content_owner_row = null; 
     1257        $sql = "SELECT user_id FROM content_has_owners WHERE content_id='$this->id'"; 
     1258        $db->execSqlUniqueRes($sql, $content_owner_row, false); 
     1259        if ($content_owner_row != null) { 
     1260            $user = User :: getObject($content_owner_row['user_id']); 
     1261            $retval[] = $user; 
     1262        } 
     1263 
     1264        return $retval; 
     1265    } 
     1266 
    12481267    /** @see GenricObject 
    12491268     * @return The id */