Skip to content

Commit

Permalink
Finish refactor to 12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
babsgosgens committed Feb 13, 2012
1 parent c72d17b commit 0bb2024
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Example usage:

KFactory::tmp('admin::com.attachments.model.images', array('original'=>$row->logo, 'file_path'=>'media/com_files/raw/'))
KService::get('com://admin/attachments.model.images', array('original'=>$row->logo, 'file_path'=>'media/com_files/raw/'))
->set('width',200)
->resize()
->save(array('path'=>'media/com_files/raw/display/'));
Expand All @@ -9,7 +9,7 @@ KFactory::tmp('admin::com.attachments.model.images', array('original'=>$row->log
Saves a proportionally sized image (width 200px) in the directory media/com_files/raw/display/ under the original's file name


KFactory::tmp('admin::com.attachments.model.images', array('original'=>$row->logo, 'file_path'=>'media/com_files/raw/'))
KService::get('com://admin/attachments.model.images', array('original'=>$row->logo, 'file_path'=>'media/com_files/raw/'))
->set('width',200)
->set('height',200)
->set('mime','image/jpg')
Expand All @@ -20,7 +20,7 @@ KFactory::tmp('admin::com.attachments.model.images', array('original'=>$row->log
Saves a proportionally sized and cropped jpeg image (200px x 200px) in the directory media/com_files/raw/display/ under the name mycroppedimage.jpg


KFactory::tmp('admin::com.attachments.model.images', array('original'=>$row->logo, 'file_path'=>'media/com_files/raw/'))
KService::get('com://admin/attachments.model.images', array('original'=>$row->logo, 'file_path'=>'media/com_files/raw/'))
->set('width',200)
->set('height',200)
->set('mime','image/jpg')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ protected function _createFilter(KCommandContext $context)
$config['separator'] = $this->_separator;

//Create the filter
$filter = KFactory::tmp('lib.koowa.filter.filename', $config);
$filter = KService::get('koowa:filter.filename', $config);
return $filter;
}

Expand Down

0 comments on commit 0bb2024

Please sign in to comment.