Skip to content

Commit

Permalink
Fixed bug(?) with writeMetadata method signature, though it worked fi…
Browse files Browse the repository at this point in the history
…ne on Unix base systems either way.
  • Loading branch information
lfarrell committed Nov 16, 2012
1 parent 687dcf7 commit fe5ede5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protected/commands/MetadataCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ protected function scrapeMetadata($file, $extract = 'metadata') {
* Code 18 file mime-type doesn't match file extension
* @param $metadata (array)
* @access public
* @return mixed sring on success, array on error
* @return mixed string on success, array on error
*/
public function getTikaFileType($metadata) {
$constants = new ReflectionClass('MetadataCommand');
Expand Down
5 changes: 4 additions & 1 deletion protected/models/FileTypeActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ abstract class FileTypeActiveRecord extends CActiveRecord {
/**
* Should be an abstract write method, but Yii doesn't seem to care for abstract methods
* @abstract
* @param array $metadata
* @param $file_id
* @param $user_id
* @access public
*/
public function writeMetadata() {}
public function writeMetadata(array $metadata, $file_id, $user_id) {}

/**
* Returned metadata fields vary by document, not just doc type.
Expand Down

0 comments on commit fe5ede5

Please sign in to comment.