Behavior/UploadableBehavior.php
public function preSave()
    {
        $script = '';

        foreach ($this->getColumns() as $column) {
            $script .= $this->renderTemplate('preSave', array(
                'column' => $this->getTable()->getColumn($column)->getFullyQualifiedName(),
                'setter' => $this->getColumnSetter($column),
                'getter' => $this->getColumnGetter($column)
            ));
        }

        return $script;
    }
public function preSave()
    {
        $script = '';

        foreach ($this->getColumns() as $column) {
            $script .= $this->renderTemplate('preSave', array(
                'column' => $this->getTable()->getColumn($column)->getFullyQualifiedName(),
                'setter' => $this->getColumnSetter($column),
                'getter' => $this->getColumnGetter($column)
            ));
        }

        return $script;
    }
public function preSave ( ) { $ script = '' ; foreach ( $ this -> getColumns ( ) as $ column ) { $ script .= $ this -> renderTemplate ( 'preSave' , array ( 'column' => $ this -> getTable ( ) -> getColumn ( $ column ) -> getFullyQualifiedName ( ) , 'setter' => $ this -> getColumnSetter ( $ column ) , 'getter' => $ this -> getColumnGetter ( $ column ) ) ) ; } return $ script ; }
Checks if need to move any uploaded files

@return string
Checks if need to move any uploaded files