Exemplo n.º 1
0
 /**
  * Serializes an object into a file.
  *
  * @param string        $uPath      the file path
  * @param string        $uContent   the file content
  * @param string|null   $uKeyphase  the key
  *
  * @return bool
  */
 public static function writeSerialize($uPath, $uContent, $uKeyphase = null)
 {
     $tContent = serialize($uContent);
     if ($uKeyphase !== null && strlen($uKeyphase) > 0) {
         $tContent = Utils::encrypt($tContent, $uKeyphase);
     }
     return self::write($uPath, $tContent);
 }