public function getLongtermFileName($controller, $dateValue = null)
    {
        if ($dateValue instanceof \Zend_Date) {
            $date = $dateValue;
        } else {
            $date = new \MUtil_Date($dateValue);
        }

        $name[] = $controller;
        $name[] = $date->toString('YYYY-MM-ddTHH-mm-ss');
        $name[] = preg_replace('/[^a-zA-Z0-9_]/', '', $this->currentUser->getLoginName());
        $name[] = $this->getOrganizationCode();

        return implode('.', array_filter($name));
    }
public function getLongtermFileName($controller, $dateValue = null)
    {
        if ($dateValue instanceof \Zend_Date) {
            $date = $dateValue;
        } else {
            $date = new \MUtil_Date($dateValue);
        }

        $name[] = $controller;
        $name[] = $date->toString('YYYY-MM-ddTHH-mm-ss');
        $name[] = preg_replace('/[^a-zA-Z0-9_]/', '', $this->currentUser->getLoginName());
        $name[] = $this->getOrganizationCode();

        return implode('.', array_filter($name));
    }
public function getLongtermFileName ( $ controller , $ dateValue = null ) { if ( $ dateValue instanceof \ Zend_Date ) { $ date = $ dateValue ; } else { $ date = new \ MUtil_Date ( $ dateValue ) ; } $ name [ ] = $ controller ; $ name [ ] = $ date -> toString ( 'YYYY-MM-ddTHH-mm-ss' ) ; $ name [ ] = preg_replace ( '/[^a-zA-Z0-9_]/' , '' , $ this -> currentUser -> getLoginName ( ) ) ; $ name [ ] = $ this -> getOrganizationCode ( ) ; return implode ( '.' , array_filter ( $ name ) ) ; }
The file name to use for final storage, minus the extension

@param string $controller Name of controller (or other id)
@param mixed $dateValue Optional date item to use in filename, timestamp, or DateObject or MUtil_Date
@return string
The file name to use for final storage minus the extension