powered by nequal
Home » Acme_MorningMusume » Timeline » 1183

Changeset 1183 -- 2009-09-14 00:13:59

Author
させざき
Comment
mkdir user-branch

Files


Diffs

Acme_MorningMusume/branches/user/sasezaki/tests/application/bootstrap.php


Acme_MorningMusume/branches/user/sasezaki/tests/library/bootstrap.php


Acme_MorningMusume/branches/user/sasezaki/tests/phpunit.xml


Acme_MorningMusume/branches/user/sasezaki/.zfproject.xml

@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<projectProfile>
+  <projectDirectory>
+    <projectProfileFile/>
+    <applicationDirectory>
+      <apisDirectory enabled="false"/>
+      <configsDirectory>
+        <applicationConfigFile type="ini"/>
+      </configsDirectory>
+      <controllersDirectory>
+        <controllerFile controllerName="index">
+          <actionMethod actionName="index"/>
+        </controllerFile>
+        <controllerFile controllerName="error"/>
+      </controllersDirectory>
+      <layoutsDirectory enabled="false"/>
+      <modelsDirectory/>
+      <modulesDirectory enabled="false"/>
+      <viewsDirectory>
+        <viewScriptsDirectory>
+          <viewControllerScriptsDirectory forControllerName="index">
+            <viewScriptFile forActionName="index"/>
+          </viewControllerScriptsDirectory>
+          <viewControllerScriptsDirectory forControllerName="error">
+            <viewScriptFile forActionName="error"/>
+          </viewControllerScriptsDirectory>
+        </viewScriptsDirectory>
+        <viewHelpersDirectory/>
+        <viewFiltersDirectory enabled="false"/>
+      </viewsDirectory>
+      <bootstrapFile/>
+    </applicationDirectory>
+    <dataDirectory enabled="false">
+      <cacheDirectory enabled="false"/>
+      <searchIndexesDirectory enabled="false"/>
+      <localesDirectory enabled="false"/>
+      <logsDirectory enabled="false"/>
+      <sessionsDirectory enabled="false"/>
+      <uploadsDirectory enabled="false"/>
+    </dataDirectory>
+    <libraryDirectory>
+      <zfStandardLibraryDirectory enabled="false"/>
+    </libraryDirectory>
+    <publicDirectory>
+      <publicStylesheetsDirectory enabled="false"/>
+      <publicScriptsDirectory enabled="false"/>
+      <publicImagesDirectory enabled="false"/>
+      <publicIndexFile/>
+      <htaccessFile/>
+    </publicDirectory>
+    <projectProvidersDirectory>
+      <projectProviderFile projectProviderName="Acme_MorningMusume_Role" actionNames="testaaa"/>
+    </projectProvidersDirectory>
+    <temporaryDirectory enabled="false"/>
+    <testsDirectory>
+      <testPHPUnitConfigFile/>
+      <testApplicationDirectory>
+        <testApplicationBootstrapFile/>
+      </testApplicationDirectory>
+      <testLibraryDirectory>
+        <testLibraryBootstrapFile/>
+      </testLibraryDirectory>
+    </testsDirectory>
+  </projectDirectory>
+</projectProfile>

Acme_MorningMusume/branches/user/sasezaki/application/Bootstrap.php

@@ -0,0 +1,8 @@
+<?php
+
+class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
+{
+
+
+}
+

Acme_MorningMusume/branches/user/sasezaki/application/controllers/IndexController.php

@@ -0,0 +1,18 @@
+<?php
+
+class IndexController extends Zend_Controller_Action
+{
+
+    public function init()
+    {
+        /* Initialize action controller here */
+    }
+
+    public function indexAction()
+    {
+        // action body
+    }
+
+
+}
+

Acme_MorningMusume/branches/user/sasezaki/application/controllers/ErrorController.php

@@ -0,0 +1,31 @@
+<?php
+
+class ErrorController extends Zend_Controller_Action
+{
+
+    public function errorAction()
+    {
+        $errors = $this->_getParam('error_handler');
+
+        switch ($errors->type) {
+            case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
+            case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
+
+                // 404 error -- controller or action not found
+                $this->getResponse()->setHttpResponseCode(404);
+                $this->view->message = 'Page not found';
+                break;
+            default:
+                // application error
+                $this->getResponse()->setHttpResponseCode(500);
+                $this->view->message = 'Application error';
+                break;
+        }
+
+        $this->view->exception = $errors->exception;
+        $this->view->request   = $errors->request;
+    }
+
+
+}
+

Acme_MorningMusume/branches/user/sasezaki/application/configs/application.ini

@@ -0,0 +1,17 @@
+[production]
+phpSettings.display_startup_errors = 0
+phpSettings.display_errors = 0
+includePaths.library = APPLICATION_PATH "/../library"
+bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
+bootstrap.class = "Bootstrap"
+resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
+
+[staging : production]
+
+[testing : production]
+phpSettings.display_startup_errors = 1
+phpSettings.display_errors = 1
+
+[development : production]
+phpSettings.display_startup_errors = 1
+phpSettings.display_errors = 1
\ No newline at end of file

Acme_MorningMusume/branches/user/sasezaki/application/views/scripts/index/index.phtml

@@ -0,0 +1,43 @@
+<style>
+    a:link,
+    a:visited
+    {
+        color: #0398CA;
+    }
+
+    span#zf-name
+    {
+        color: #91BE3F;
+    }
+
+    div#welcome
+    {
+        color: #FFFFFF;
+        background-image: url(http://framework.zend.com/images/bkg_header.jpg);
+        width:  600px;
+        height: 400px;
+        border: 2px solid #444444;
+        overflow: hidden;
+        text-align: center;
+    }
+
+    div#more-information
+    {
+        background-image: url(http://framework.zend.com/images/bkg_body-bottom.gif);
+        height: 100%;
+    }
+</style>
+<div id="welcome">
+    <h1>Welcome to the <span id="zf-name">Zend Framework!</span></h1>
+
+    <h3>This is your project's main page</h3>
+
+    <div id="more-information">
+        <p><img src="http://framework.zend.com/images/PoweredBy_ZF_4LightBG.png" /></p>
+        <p>
+            Helpful Links: <br />
+            <a href="http://framework.zend.com/">Zend Framework Website</a> |
+            <a href="http://framework.zend.com/manual/en/">Zend Framework Manual</a>
+        </p>
+    </div>
+</div>
\ No newline at end of file

Acme_MorningMusume/branches/user/sasezaki/application/views/scripts/error/error.phtml

@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <title>Zend Framework Default Application</title>
+</head>
+<body>
+  <h1>An error occurred</h1>
+  <h2><?php echo $this->message ?></h2>
+
+  <?php if ('development' == APPLICATION_ENV): ?>
+
+  <h3>Exception information:</h3>
+  <p>
+      <b>Message:</b> <?php echo $this->exception->getMessage() ?>
+  </p>
+
+  <h3>Stack trace:</h3>
+  <pre><?php echo $this->exception->getTraceAsString() ?>
+  </pre>
+
+  <h3>Request Parameters:</h3>
+  <pre><?php echo var_export($this->request->getParams(), true) ?>
+  </pre>
+  <?php endif ?>
+
+</body>
+</html>

Acme_MorningMusume/branches/user/sasezaki/library/Acme/MorningMusume/Person/CurrentMemberInterface.php

@@ -0,0 +1,3 @@
+<?php
+
+interface Acme_MorningMusume_Person_CurrentMemberInterface extends Acme_MorningMusume_Person_MemberInterface{}

Acme_MorningMusume/branches/user/sasezaki/library/Acme/MorningMusume/Person/Role.php

@@ -0,0 +1,13 @@
+<?php
+
+class Acme_MorningMusume_Person_Role
+{
+    protected $_roleId = '';
+
+    public function __current($role)
+    {
+        $this->_roleId = $role;
+    }
+
+
+}

Acme_MorningMusume/branches/user/sasezaki/library/Acme/MorningMusume/Person/Data/ja_JP.xml

@@ -0,0 +1,2 @@
+<xml>
+</xml>

Acme_MorningMusume/branches/user/sasezaki/library/Acme/MorningMusume/Person/Data/ja.xml

@@ -0,0 +1,2 @@
+<xml>
+</xml>

Acme_MorningMusume/branches/user/sasezaki/library/Acme/MorningMusume/Person/MemberInterface.php

@@ -0,0 +1,3 @@
+<?php
+
+interface Acme_MorningMusume_Person_MemberInterface{};

Acme_MorningMusume/branches/user/sasezaki/library/Acme/MorningMusume/Person.php

@@ -0,0 +1,16 @@
+<?php
+
+
+class Acme_MorningMusume_Person
+{
+    protected $_roles = array();
+
+    public function __construct()
+    {
+    }
+
+    public function addRole(Acme_MorningMusume_Person_Role $role)
+    {
+        $this->_roles[] = $role;
+    }
+}

Acme_MorningMusume/branches/user/sasezaki/library/Acme/MorningMusume.php

@@ -0,0 +1,40 @@
+<?php
+
+class Acme_MorningMusume
+{
+
+    const MODE_STRICT = 0;
+    const MODE_LAZY   = 1;
+
+    public function __construct($mode)
+    {
+    }
+
+    public function getPerson($name)
+    {
+        if ($this->_mode == self::MODE_STRICT)
+        {
+            if ($name == 'nacchi')
+            {
+                return false;
+            }
+        }
+
+        $people = new Acme_MorningMusume_Person();
+        $people->addRole();
+        $people->addRole('UnkoSuruyo');
+
+        return $person;
+
+    }
+
+    public function getGroup($groupName)
+    {
+
+
+        if (array_key_exists($groupName, $groups))
+        {
+
+        }
+    }
+}

Acme_MorningMusume/branches/user/sasezaki/providers/Acme_MorningMusume_RoleProvider.php

@@ -0,0 +1,16 @@
+<?php
+
+require_once 'Zend/Tool/Project/Provider/Abstract.php';
+require_once 'Zend/Tool/Project/Provider/Exception.php';
+
+class Acme_MorningMusume_RoleProvider extends Zend_Tool_Project_Provider_Abstract
+{
+
+    public function testaaa()
+    {
+        /** @todo Implementation */
+    }
+
+
+}
+

Acme_MorningMusume/branches/user/sasezaki/public/.htaccess

@@ -0,0 +1,8 @@
+SetEnv APPLICATION_ENV development
+
+RewriteEngine On
+RewriteCond %{REQUEST_FILENAME} -s [OR]
+RewriteCond %{REQUEST_FILENAME} -l [OR]
+RewriteCond %{REQUEST_FILENAME} -d
+RewriteRule ^.*$ - [NC,L]
+RewriteRule ^.*$ index.php [NC,L]

Acme_MorningMusume/branches/user/sasezaki/public/index.php

@@ -0,0 +1,26 @@
+<?php
+
+// Define path to application directory
+defined('APPLICATION_PATH')
+    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
+
+// Define application environment
+defined('APPLICATION_ENV')
+    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
+
+// Ensure library/ is on include_path
+set_include_path(implode(PATH_SEPARATOR, array(
+    realpath(APPLICATION_PATH . '/../library'),
+    get_include_path(),
+)));
+
+/** Zend_Application */
+require_once 'Zend/Application.php';
+
+// Create application, bootstrap, and run
+$application = new Zend_Application(
+    APPLICATION_ENV,
+    APPLICATION_PATH . '/configs/application.ini'
+);
+$application->bootstrap()
+            ->run();
\ No newline at end of file

Acme_MorningMusume/branches/user/sasezaki/sandbox/check.php

@@ -0,0 +1,11 @@
+<?php
+
+set_include_path(dirname(__DIR__) . '/library' . PATH_SEPARATOR . get_include_path());
+
+
+require_once 'Zend/Loader/Autoloader.php';
+Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(true);
+
+class Test implements Acme_MorningMusume_Person_CurrentMemberInterface
+{
+}