Changeset 1268:8ae42b11a9cb
- Timestamp:
- 08/05/13 13:30:27 (10 years ago)
- Branch:
- ticket1084
- Children:
- 1269:383c341506b4, 1404:8beafb9886a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.media.php
r1267 r1268 497 497 @param post_id <b>integer</b> Post ID 498 498 @param media_id <b>integer</b> Optionnal media ID 499 @param rs <b>boolean</b> Whether to return a resultset (true) or an array (false, default value).499 @param $returnRs <b>boolean</b> Whether to return a resultset (true) or an array (false, default value). 500 500 @return <b>array</b> Array or ResultSet of fileItems 501 501 */ 502 public function getPostMedia($post_id,$media_id=null,$r s=false)502 public function getPostMedia($post_id,$media_id=null,$returnRs=false) 503 503 { 504 504 $params = array( … … 516 516 $f = $this->fileRecord($rs); 517 517 if ($f !== null) { 518 $res[] = $r s ? new ArrayObject($f) : $f;519 } 520 } 521 522 return $r s ? staticRecord::newFromArray($res) : $res;518 $res[] = $returnRs ? new ArrayObject($f) : $f; 519 } 520 } 521 522 return $returnRs ? staticRecord::newFromArray($res) : $res; 523 523 } 524 524
Note: See TracChangeset
for help on using the changeset viewer.